ag-common 0.0.766 → 0.0.767
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.
|
@@ -11,9 +11,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.deleteItemCosmos = deleteItemCosmos;
|
|
13
13
|
exports.deleteItemsByField = deleteItemsByField;
|
|
14
|
-
const utils_1 = require("./utils");
|
|
15
14
|
const log_1 = require("../../../common/helpers/log");
|
|
16
15
|
const withRetry_1 = require("../withRetry");
|
|
16
|
+
const utils_1 = require("./utils");
|
|
17
17
|
function deleteItemCosmos(container, pk) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
try {
|
|
@@ -19,8 +19,8 @@ exports.scanCosmos = scanCosmos;
|
|
|
19
19
|
exports.queryItemsByNumber = queryItemsByNumber;
|
|
20
20
|
exports.queryItemsByType = queryItemsByType;
|
|
21
21
|
exports.queryItemsByRelevancy = queryItemsByRelevancy;
|
|
22
|
-
const log_1 = require("../../../common/helpers/log");
|
|
23
22
|
const node_cache_1 = __importDefault(require("node-cache"));
|
|
23
|
+
const log_1 = require("../../../common/helpers/log");
|
|
24
24
|
// Create a NodeCache instance with 5 second TTL
|
|
25
25
|
const cache = new node_cache_1.default({ stdTTL: 5 });
|
|
26
26
|
function getItemCosmos(container, partitionValue) {
|
|
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Cosmos = void 0;
|
|
13
|
-
const utils_1 = require("./utils");
|
|
14
13
|
const delete_1 = require("./delete");
|
|
15
14
|
const get_1 = require("./get");
|
|
15
|
+
const utils_1 = require("./utils");
|
|
16
16
|
const write_1 = require("./write");
|
|
17
17
|
class Cosmos {
|
|
18
18
|
constructor(settings) {
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.putItemCosmos = putItemCosmos;
|
|
13
13
|
exports.putItemsCosmos = putItemsCosmos;
|
|
14
|
-
const withRetry_1 = require("../withRetry");
|
|
15
14
|
const log_1 = require("../../../common/helpers/log");
|
|
15
|
+
const withRetry_1 = require("../withRetry");
|
|
16
16
|
const utils_1 = require("./utils");
|
|
17
17
|
function putItemCosmos(container, item) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED