Skip to content

Commit

Permalink
chore: updated dependencies
Browse files Browse the repository at this point in the history
fix: allow any aws-sdk v3 minor and patch versions

feat: introduce RawType in Schema instance

fix: ignore more files in npm package
  • Loading branch information
Inqnuam committed Mar 9, 2024
1 parent 668b242 commit d8b869c
Show file tree
Hide file tree
Showing 4 changed files with 1,286 additions and 988 deletions.
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.github
.husky
.vscode
.gitignore
.npmignore
Expand All @@ -10,4 +11,6 @@ src
test
build.mjs
TODO.md
tsconfig.json
tsconfig.json
tsconfig.build.json
tsconfig.test.json
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Inqnuam",
"license": "MIT",
"description": "Transforming DynamoDB Complexity into Developer Simplicity.",
"version": "1.0.0",
"version": "1.0.1",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"module": "./dist/index.mjs",
Expand All @@ -25,17 +25,17 @@
"build": "node ./build.mjs",
"types": "tsc -p ./tsconfig.build.json",
"tsc": "tsc",
"prepare": "husky install"
"prepare": "husky"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "3",
"@aws-sdk/util-dynamodb": "3"
"@aws-sdk/client-dynamodb": "^3",
"@aws-sdk/util-dynamodb": "^3"
},
"devDependencies": {
"@types/node": "^18.0.4",
"esbuild": "^0.19.10",
"husky": "^8.0.3",
"typescript": "^5.3.3",
"vitest": "^0.34.6"
"@types/node": "^18.19.22",
"esbuild": "^0.20.1",
"husky": "^9.0.11",
"typescript": "^5.4.2",
"vitest": "^1.3.1"
}
}
5 changes: 5 additions & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export class Schema<T> {
* @deprecated Not deprecated! This is marked as deprecated to not use as JS value but only as Type
*/
readonly GotItem: Mutable<GotItem<T>>;
/**
* @description use only to get Schema Raw Type (as you provided) for type checking purpose.
* @deprecated Not deprecated! This is marked as deprecated to not use as JS value but only as Type
*/
readonly RawType: T;

#parseSchemaField(field: FieldType) {
const dbType = getDbType(field);
Expand Down
Loading

0 comments on commit d8b869c

Please sign in to comment.