@medusajs/cache-inmemory 1.8.11-snapshot-20240717160031 → 1.8.11-snapshot-20240718083016
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/initialize/index.d.ts +0 -1
- package/dist/initialize/index.js +53 -10
- package/dist/initialize/index.js.map +1 -1
- package/dist/services/index.d.ts +0 -1
- package/dist/services/inmemory-cache.d.ts +0 -1
- package/dist/services/inmemory-cache.js +122 -50
- package/dist/services/inmemory-cache.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +6 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/initialize/index.d.ts.map +0 -1
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/inmemory-cache.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -17,10 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
18
|
};
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
service,
|
20
|
+
var inmemory_cache_1 = __importDefault(require("./services/inmemory-cache"));
|
21
|
+
var service = inmemory_cache_1.default;
|
22
|
+
var moduleDefinition = {
|
23
|
+
service: service,
|
24
24
|
};
|
25
25
|
exports.default = moduleDefinition;
|
26
26
|
__exportStar(require("./initialize"), exports);
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA,6EAA4D;AAE5D,IAAM,OAAO,GAAG,wBAAoB,CAAA;AAEpC,IAAM,gBAAgB,GAAkB;IACtC,OAAO,SAAA;CACR,CAAA;AAED,kBAAe,gBAAgB,CAAA;AAC/B,+CAA4B;AAC5B,0CAAuB"}
|
@@ -2,4 +2,3 @@ import { ExternalModuleDeclaration } from "@medusajs/modules-sdk";
|
|
2
2
|
import { ICacheService } from "@medusajs/types";
|
3
3
|
import { InMemoryCacheModuleOptions } from "../types";
|
4
4
|
export declare const initialize: (options?: InMemoryCacheModuleOptions | ExternalModuleDeclaration) => Promise<ICacheService>;
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/initialize/index.js
CHANGED
@@ -1,16 +1,59 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
|
+
function step(op) {
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
|
+
switch (op[0]) {
|
21
|
+
case 0: case 1: t = op; break;
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
25
|
+
default:
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
30
|
+
if (t[2]) _.ops.pop();
|
31
|
+
_.trys.pop(); continue;
|
32
|
+
}
|
33
|
+
op = body.call(thisArg, _);
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
36
|
+
}
|
37
|
+
};
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
39
|
exports.initialize = void 0;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
40
|
+
var modules_sdk_1 = require("@medusajs/modules-sdk");
|
41
|
+
var initialize = function (options) { return __awaiter(void 0, void 0, void 0, function () {
|
42
|
+
var serviceKey, loaded;
|
43
|
+
return __generator(this, function (_a) {
|
44
|
+
switch (_a.label) {
|
45
|
+
case 0:
|
46
|
+
serviceKey = modules_sdk_1.Modules.CACHE;
|
47
|
+
return [4 /*yield*/, modules_sdk_1.MedusaModule.bootstrap({
|
48
|
+
moduleKey: serviceKey,
|
49
|
+
defaultPath: "@medusajs/cache-inmemory",
|
50
|
+
declaration: options,
|
51
|
+
})];
|
52
|
+
case 1:
|
53
|
+
loaded = _a.sent();
|
54
|
+
return [2 /*return*/, loaded[serviceKey]];
|
55
|
+
}
|
12
56
|
});
|
13
|
-
|
14
|
-
};
|
57
|
+
}); };
|
15
58
|
exports.initialize = initialize;
|
16
59
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAK8B;AAIvB,IAAM,UAAU,GAAG,UACxB,OAAgE;;;;;gBAE1D,UAAU,GAAG,qBAAO,CAAC,KAAK,CAAA;gBACjB,qBAAM,0BAAY,CAAC,SAAS,CAAgB;wBACzD,SAAS,EAAE,UAAU;wBACrB,WAAW,EAAE,0BAA0B;wBACvC,WAAW,EAAE,OAEgB;qBAC9B,CAAC,EAAA;;gBANI,MAAM,GAAG,SAMb;gBAEF,sBAAO,MAAM,CAAC,UAAU,CAAC,EAAA;;;KAC1B,CAAA;AAbY,QAAA,UAAU,cAatB"}
|
package/dist/services/index.d.ts
CHANGED
@@ -1,80 +1,152 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
|
+
function step(op) {
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
|
+
switch (op[0]) {
|
21
|
+
case 0: case 1: t = op; break;
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
25
|
+
default:
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
30
|
+
if (t[2]) _.ops.pop();
|
31
|
+
_.trys.pop(); continue;
|
32
|
+
}
|
33
|
+
op = body.call(thisArg, _);
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
36
|
+
}
|
37
|
+
};
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
|
39
|
+
var DEFAULT_TTL = 30; // seconds
|
4
40
|
/**
|
5
41
|
* Class represents basic, in-memory, cache store.
|
6
42
|
*/
|
7
|
-
|
8
|
-
|
43
|
+
var InMemoryCacheService = /** @class */ (function () {
|
44
|
+
function InMemoryCacheService(deps, options) {
|
45
|
+
if (options === void 0) { options = {}; }
|
46
|
+
var _a;
|
9
47
|
this.store = new Map();
|
10
48
|
this.timoutRefs = new Map();
|
11
|
-
this.TTL = options.ttl
|
49
|
+
this.TTL = (_a = options.ttl) !== null && _a !== void 0 ? _a : DEFAULT_TTL;
|
12
50
|
}
|
13
51
|
/**
|
14
52
|
* Retrieve data from the cache.
|
15
53
|
* @param key - cache key
|
16
54
|
*/
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
55
|
+
InMemoryCacheService.prototype.get = function (key) {
|
56
|
+
var _a;
|
57
|
+
return __awaiter(this, void 0, void 0, function () {
|
58
|
+
var now, record, recordExpire;
|
59
|
+
return __generator(this, function (_b) {
|
60
|
+
now = Date.now();
|
61
|
+
record = this.store.get(key);
|
62
|
+
recordExpire = (_a = record === null || record === void 0 ? void 0 : record.expire) !== null && _a !== void 0 ? _a : Infinity;
|
63
|
+
if (!record || recordExpire < now) {
|
64
|
+
return [2 /*return*/, null];
|
65
|
+
}
|
66
|
+
return [2 /*return*/, record.data];
|
67
|
+
});
|
68
|
+
});
|
69
|
+
};
|
26
70
|
/**
|
27
71
|
* Set data to the cache.
|
28
72
|
* @param key - cache key under which the data is stored
|
29
73
|
* @param data - data to be stored in the cache
|
30
74
|
* @param ttl - expiration time in seconds
|
31
75
|
*/
|
32
|
-
|
33
|
-
if (ttl === 0) {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
76
|
+
InMemoryCacheService.prototype.set = function (key, data, ttl) {
|
77
|
+
if (ttl === void 0) { ttl = this.TTL; }
|
78
|
+
return __awaiter(this, void 0, void 0, function () {
|
79
|
+
var record, oldRecord, ref;
|
80
|
+
var _this = this;
|
81
|
+
return __generator(this, function (_a) {
|
82
|
+
if (ttl === 0) {
|
83
|
+
return [2 /*return*/];
|
84
|
+
}
|
85
|
+
record = { data: data, expire: ttl * 1000 + Date.now() };
|
86
|
+
oldRecord = this.store.get(key);
|
87
|
+
if (oldRecord) {
|
88
|
+
clearTimeout(this.timoutRefs.get(key));
|
89
|
+
this.timoutRefs.delete(key);
|
90
|
+
}
|
91
|
+
ref = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
92
|
+
return __generator(this, function (_a) {
|
93
|
+
switch (_a.label) {
|
94
|
+
case 0: return [4 /*yield*/, this.invalidate(key)];
|
95
|
+
case 1:
|
96
|
+
_a.sent();
|
97
|
+
return [2 /*return*/];
|
98
|
+
}
|
99
|
+
});
|
100
|
+
}); }, ttl * 1000);
|
101
|
+
ref.unref();
|
102
|
+
this.timoutRefs.set(key, ref);
|
103
|
+
this.store.set(key, record);
|
104
|
+
return [2 /*return*/];
|
105
|
+
});
|
106
|
+
});
|
107
|
+
};
|
49
108
|
/**
|
50
109
|
* Delete data from the cache.
|
51
110
|
* Could use wildcard (*) matcher e.g. `invalidate("ps:*")` to delete all keys that start with "ps:"
|
52
111
|
*
|
53
112
|
* @param key - cache key
|
54
113
|
*/
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
114
|
+
InMemoryCacheService.prototype.invalidate = function (key) {
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
116
|
+
var keys, regExp_1;
|
117
|
+
var _this = this;
|
118
|
+
return __generator(this, function (_a) {
|
119
|
+
keys = [key];
|
120
|
+
if (key.includes("*")) {
|
121
|
+
regExp_1 = new RegExp(key.replace("*", ".*"));
|
122
|
+
keys = Array.from(this.store.keys()).filter(function (k) { return k.match(regExp_1); });
|
123
|
+
}
|
124
|
+
keys.forEach(function (key) {
|
125
|
+
var timeoutRef = _this.timoutRefs.get(key);
|
126
|
+
if (timeoutRef) {
|
127
|
+
clearTimeout(timeoutRef);
|
128
|
+
_this.timoutRefs.delete(key);
|
129
|
+
}
|
130
|
+
_this.store.delete(key);
|
131
|
+
});
|
132
|
+
return [2 /*return*/];
|
133
|
+
});
|
68
134
|
});
|
69
|
-
}
|
135
|
+
};
|
70
136
|
/**
|
71
137
|
* Delete the entire cache.
|
72
138
|
*/
|
73
|
-
|
74
|
-
this
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
139
|
+
InMemoryCacheService.prototype.clear = function () {
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
141
|
+
return __generator(this, function (_a) {
|
142
|
+
this.timoutRefs.forEach(function (ref) { return clearTimeout(ref); });
|
143
|
+
this.timoutRefs.clear();
|
144
|
+
this.store.clear();
|
145
|
+
return [2 /*return*/];
|
146
|
+
});
|
147
|
+
});
|
148
|
+
};
|
149
|
+
return InMemoryCacheService;
|
150
|
+
}());
|
79
151
|
exports.default = InMemoryCacheService;
|
80
152
|
//# sourceMappingURL=inmemory-cache.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inmemory-cache.js","sourceRoot":"","sources":["../../src/services/inmemory-cache.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"inmemory-cache.js","sourceRoot":"","sources":["../../src/services/inmemory-cache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAM,WAAW,GAAG,EAAE,CAAA,CAAC,UAAU;AAIjC;;GAEG;AACH;IAME,8BACE,IAA0B,EAC1B,OAAwC;QAAxC,wBAAA,EAAA,YAAwC;;QALvB,UAAK,GAAG,IAAI,GAAG,EAA4B,CAAA;QAC3C,eAAU,GAAG,IAAI,GAAG,EAA0B,CAAA;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AAED,kBAAe,oBAAoB,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/cache-inmemory",
|
3
|
-
"version": "1.8.11-snapshot-
|
3
|
+
"version": "1.8.11-snapshot-20240718083016",
|
4
4
|
"description": "In-memory Cache Module for Medusa",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"directory": "packages/cache-inmemory"
|
10
10
|
},
|
11
11
|
"engines": {
|
12
|
-
"node": ">=
|
12
|
+
"node": ">=16"
|
13
13
|
},
|
14
14
|
"publishConfig": {
|
15
15
|
"access": "public"
|
@@ -20,10 +20,11 @@
|
|
20
20
|
"author": "Medusa",
|
21
21
|
"license": "MIT",
|
22
22
|
"devDependencies": {
|
23
|
-
"@medusajs/types": "1.
|
23
|
+
"@medusajs/types": "1.11.17-snapshot-20240718083016",
|
24
24
|
"cross-env": "^5.2.1",
|
25
|
-
"jest": "^29.
|
25
|
+
"jest": "^29.6.3",
|
26
26
|
"rimraf": "^5.0.1",
|
27
|
+
"ts-jest": "^29.1.1",
|
27
28
|
"typescript": "^5.1.6"
|
28
29
|
},
|
29
30
|
"scripts": {
|
@@ -33,7 +34,6 @@
|
|
33
34
|
"test": "jest --passWithNoTests"
|
34
35
|
},
|
35
36
|
"dependencies": {
|
36
|
-
"@medusajs/modules-sdk": "1.
|
37
|
-
"@medusajs/utils": "1.12.0-snapshot-20240717160031"
|
37
|
+
"@medusajs/modules-sdk": "1.12.12-snapshot-20240718083016"
|
38
38
|
}
|
39
39
|
}
|
package/dist/index.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAKrD,QAAA,MAAM,gBAAgB,EAAE,aAEvB,CAAA;AAED,eAAe,gBAAgB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAG1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAGrD,eAAO,MAAM,UAAU,aACX,0BAA0B,GAAG,yBAAyB,KAC/D,QAAQ,aAAa,CAWvB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"inmemory-cache.d.ts","sourceRoot":"","sources":["../../src/services/inmemory-cache.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAIlE,KAAK,oBAAoB,GAAG,EAAE,CAAA;AAE9B;;GAEG;AACH,cAAM,oBAAqB,YAAW,aAAa;IACjD,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IAE9B,SAAS,CAAC,QAAQ,CAAC,KAAK,gCAAsC;IAC9D,SAAS,CAAC,QAAQ,CAAC,UAAU,8BAAoC;gBAG/D,IAAI,EAAE,oBAAoB,EAC1B,OAAO,GAAE,0BAA+B;IAK1C;;;OAGG;IACG,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAa5C;;;;;OAKG;IACG,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,GAAE,MAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBzE;;;;;OAKG;IACG,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkB5C;;OAEG;IACG,KAAK;CAMZ;AAED,eAAe,oBAAoB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,IAAI,EAAE,CAAC,CAAA;IACP;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA"}
|