Skip to content

Commit

Permalink
chore(package): upgrade deps
Browse files Browse the repository at this point in the history
fix: trans symbol to string
  • Loading branch information
cncolder committed Jun 5, 2018
1 parent 4a39d42 commit 4a3c561
Show file tree
Hide file tree
Showing 3 changed files with 863 additions and 321 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
},
"dependencies": {
"tdv": "^0.3.1",
"tslib": "^1.9.0"
"tslib": "^1.9.2"
},
"devDependencies": {
"@types/jest": "^22.2.2",
"@types/joi": "^13.0.7",
"@types/node": "^10.0.3",
"@types/jest": "^23.0.0",
"@types/joi": "^13.0.8",
"@types/node": "^10.3.1",
"aws-sdk": "^2.218.1",
"dynalite": "^1.2.0",
"jest": "^22.4.3",
"jest": "^23.1.0",
"joi": "12",
"rimraf": "^2.6.2",
"standard-version": "^4.3.0",
"standard-version": "^4.4.0",
"test-listen": "^1.1.0",
"ts-jest": "^22.4.2",
"typescript": "^2.8.1"
"ts-jest": "^22.4.6",
"typescript": "^2.9.1"
},
"peerDependencies": {
"aws-sdk": "*"
Expand Down
8 changes: 4 additions & 4 deletions src/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const keyDescriptor: (type: 'hash' | 'range') => HandleDescriptor = type => (tar
log('keyDescriptor', target, key, desc)

// Dont rewrite existed tdv metadata
if (!Reflect.hasOwnMetadata(`tdv:key:${key}`, target)) {
if (!Reflect.hasOwnMetadata(`tdv:key:${key.toString()}`, target)) {
required(target, key, desc)
}

Expand All @@ -51,11 +51,11 @@ const indexDescriptor: (global?: boolean) => HandleDescriptor = global => (targe

const scope = global ? 'global' : 'local'
const opts: IndexKeyOptions = options || {}
const name = opts.name || `${key}-${scope}`
const name = opts.name || `${key.toString()}-${scope}`
const type = opts.type || (global ? 'hash' : 'range')

// Dont rewrite existed tdv metadata
if (!Reflect.hasOwnMetadata(`tdv:key:${key}`, target)) {
if (!Reflect.hasOwnMetadata(`tdv:key:${key.toString()}`, target)) {
optional(target, key, desc)
}

Expand Down Expand Up @@ -86,7 +86,7 @@ const timestampDescriptor: HandleDescriptor = (target, key, desc, [opts]) => {
log('timestampDescriptor', target, key, desc, type)

// Dont rewrite existed tdv metadata
if (!Reflect.hasOwnMetadata(`tdv:key:${key}`, target)) {
if (!Reflect.hasOwnMetadata(`tdv:key:${key.toString()}`, target)) {
if (~['create', 'update'].indexOf(type)) {
optional(j => j.date()
.iso()
Expand Down
Loading

0 comments on commit 4a3c561

Please sign in to comment.