@itzworking/single-table 0.0.149 → 0.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/decorators/entity/entity.js +1 -1
- package/src/decorators/entity/entity.js.map +1 -1
- package/src/decorators/entity/get-entity-name.js +1 -1
- package/src/decorators/entity/get-entity-name.js.map +1 -1
- package/src/decorators/gsis/get-pk-composition.js +1 -1
- package/src/decorators/gsis/get-pk-composition.js.map +1 -1
- package/src/decorators/gsis/get-sk-composition.js +1 -1
- package/src/decorators/gsis/get-sk-composition.js.map +1 -1
- package/src/decorators/gsis/gsis.js +2 -2
- package/src/decorators/gsis/gsis.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itzworking/single-table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.151",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.3.0"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@aws-sdk/client-dynamodb": "3.x",
|
|
10
10
|
"@aws-sdk/lib-dynamodb": "3.x",
|
|
11
|
-
"@itzworking/decorated-class": "0.0.
|
|
12
|
-
"@itzworking/powertools": "0.0.
|
|
11
|
+
"@itzworking/decorated-class": "0.0.151",
|
|
12
|
+
"@itzworking/powertools": "0.0.151",
|
|
13
13
|
"reflect-metadata": "0.2.x",
|
|
14
14
|
"uuid": "10.x"
|
|
15
15
|
},
|
|
@@ -4,7 +4,7 @@ exports.Entity = void 0;
|
|
|
4
4
|
const symbol_1 = require("./symbol");
|
|
5
5
|
const Entity = (name) => {
|
|
6
6
|
return (constructor, ctx) => {
|
|
7
|
-
Reflect.defineMetadata(symbol_1.symbol, name, constructor);
|
|
7
|
+
Reflect.defineMetadata(constructor.name + "#" + symbol_1.symbol.toString(), name, constructor);
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
exports.Entity = Entity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/entity/entity.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAE3B,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,EAAE;IACrC,OAAO,CACL,WAAc,EACd,GAA2B,EAC3B,EAAE;QACF,OAAO,CAAC,cAAc,CAAC,eAAM,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/entity/entity.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAE3B,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,EAAE;IACrC,OAAO,CACL,WAAc,EACd,GAA2B,EAC3B,EAAE;QACF,OAAO,CAAC,cAAc,CACpB,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,eAAM,CAAC,QAAQ,EAAE,EAC1C,IAAI,EACJ,WAAW,CACZ,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,MAAM,UAWjB"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getEntityName = void 0;
|
|
4
4
|
const symbol_1 = require("./symbol");
|
|
5
5
|
const getEntityName = (target) => {
|
|
6
|
-
return Reflect.getMetadata(symbol_1.symbol, target.constructor);
|
|
6
|
+
return Reflect.getMetadata(target.constructor.name + "#" + symbol_1.symbol.toString(), target.constructor);
|
|
7
7
|
};
|
|
8
8
|
exports.getEntityName = getEntityName;
|
|
9
9
|
//# sourceMappingURL=get-entity-name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-name.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/entity/get-entity-name.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAE3B,MAAM,aAAa,GAAG,CAAC,MAAW,EAAE,EAAE;IAC3C,OAAO,OAAO,CAAC,WAAW,CAAC,eAAM,EAAE,MAAM,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"get-entity-name.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/entity/get-entity-name.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAE3B,MAAM,aAAa,GAAG,CAAC,MAAW,EAAE,EAAE;IAC3C,OAAO,OAAO,CAAC,WAAW,CACxB,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,eAAM,CAAC,QAAQ,EAAE,EACjD,MAAM,CAAC,WAAW,CACnB,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getPKComposition = void 0;
|
|
4
4
|
const symbols_1 = require("./symbols");
|
|
5
5
|
const getPKComposition = (target, name = "Index") => {
|
|
6
|
-
return Reflect.getMetadata(symbols_1.symbols[name].PK, target.constructor);
|
|
6
|
+
return Reflect.getMetadata(target.constructor.name + "#" + symbols_1.symbols[name].PK.toString(), target.constructor);
|
|
7
7
|
};
|
|
8
8
|
exports.getPKComposition = getPKComposition;
|
|
9
9
|
//# sourceMappingURL=get-pk-composition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pk-composition.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/gsis/get-pk-composition.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAE7B,MAAM,gBAAgB,GAAG,CAC9B,MAAW,EACX,OAA6B,OAAO,EAC1B,EAAE;IACZ,OAAO,OAAO,CAAC,WAAW,CAAC,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"get-pk-composition.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/gsis/get-pk-composition.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAE7B,MAAM,gBAAgB,GAAG,CAC9B,MAAW,EACX,OAA6B,OAAO,EAC1B,EAAE;IACZ,OAAO,OAAO,CAAC,WAAW,CACxB,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,EAC3D,MAAM,CAAC,WAAW,CACnB,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getSKComposition = void 0;
|
|
4
4
|
const symbols_1 = require("./symbols");
|
|
5
5
|
const getSKComposition = (target, name = "Index") => {
|
|
6
|
-
return Reflect.getMetadata(symbols_1.symbols[name].SK, target.constructor);
|
|
6
|
+
return Reflect.getMetadata(target.constructor.name + "#" + symbols_1.symbols[name].SK.toString(), target.constructor);
|
|
7
7
|
};
|
|
8
8
|
exports.getSKComposition = getSKComposition;
|
|
9
9
|
//# sourceMappingURL=get-sk-composition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sk-composition.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/gsis/get-sk-composition.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAE7B,MAAM,gBAAgB,GAAG,CAC9B,MAAW,EACX,OAA6B,OAAO,EAC1B,EAAE;IACZ,OAAO,OAAO,CAAC,WAAW,CAAC,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"get-sk-composition.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/gsis/get-sk-composition.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAE7B,MAAM,gBAAgB,GAAG,CAC9B,MAAW,EACX,OAA6B,OAAO,EAC1B,EAAE;IACZ,OAAO,OAAO,CAAC,WAAW,CACxB,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,EAC3D,MAAM,CAAC,WAAW,CACnB,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
|
|
@@ -5,8 +5,8 @@ const symbols_1 = require("./symbols");
|
|
|
5
5
|
const buildIndex = (name = "Index") => {
|
|
6
6
|
return (keyComposition) => {
|
|
7
7
|
return (constructor, context) => {
|
|
8
|
-
Reflect.defineMetadata(symbols_1.symbols[name].PK, keyComposition.PK, constructor);
|
|
9
|
-
Reflect.defineMetadata(symbols_1.symbols[name].SK, keyComposition.SK, constructor);
|
|
8
|
+
Reflect.defineMetadata(constructor.name + "#" + symbols_1.symbols[name].PK.toString(), keyComposition.PK, constructor);
|
|
9
|
+
Reflect.defineMetadata(constructor.name + "#" + symbols_1.symbols[name].SK.toString(), keyComposition.SK, constructor);
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gsis.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/gsis/gsis.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AAEpC,MAAM,UAAU,GAAG,CAAC,OAA6B,OAAO,EAAE,EAAE;IAC1D,OAAO,CAAI,cAAiD,EAAE,EAAE;QAC9D,OAAO,CACL,WAAwC,EACxC,OAA+B,EAC/B,EAAE;YACF,OAAO,CAAC,cAAc,CAAC,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"gsis.js","sourceRoot":"","sources":["../../../../../../libs/single-table/src/decorators/gsis/gsis.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AAEpC,MAAM,UAAU,GAAG,CAAC,OAA6B,OAAO,EAAE,EAAE;IAC1D,OAAO,CAAI,cAAiD,EAAE,E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