@xylabs/forget 2.6.4 → 2.6.7

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.
Files changed (85) hide show
  1. package/{tsconfig.build.cjs.json → .tsconfig.build.cjs.json} +8 -2
  2. package/{tsconfig.build.esm.json → .tsconfig.build.esm.json} +8 -2
  3. package/dist/cjs/index.d.ts +2 -2
  4. package/dist/cjs/index.d.ts.map +1 -1
  5. package/dist/cjs/index.js +2 -1
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/docs.json +254 -4
  8. package/dist/esm/index.d.ts +2 -2
  9. package/dist/esm/index.d.ts.map +1 -1
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/index.js.map +1 -1
  12. package/package.json +3 -4
  13. package/src/index.ts +2 -2
  14. package/dist/cjs/browser/Buffer.d.ts +0 -3
  15. package/dist/cjs/browser/Buffer.d.ts.map +0 -1
  16. package/dist/cjs/browser/Buffer.js +0 -6
  17. package/dist/cjs/browser/Buffer.js.map +0 -1
  18. package/dist/cjs/browser/bufferPolyfill.d.ts +0 -2
  19. package/dist/cjs/browser/bufferPolyfill.d.ts.map +0 -1
  20. package/dist/cjs/browser/bufferPolyfill.js +0 -15
  21. package/dist/cjs/browser/bufferPolyfill.js.map +0 -1
  22. package/dist/cjs/browser/index.d.ts +0 -3
  23. package/dist/cjs/browser/index.d.ts.map +0 -1
  24. package/dist/cjs/browser/index.js +0 -6
  25. package/dist/cjs/browser/index.js.map +0 -1
  26. package/dist/cjs/browserIndex.d.ts +0 -3
  27. package/dist/cjs/browserIndex.d.ts.map +0 -1
  28. package/dist/cjs/browserIndex.js +0 -9
  29. package/dist/cjs/browserIndex.js.map +0 -1
  30. package/dist/cjs/delay.d.ts +0 -2
  31. package/dist/cjs/delay.d.ts.map +0 -1
  32. package/dist/cjs/delay.js +0 -8
  33. package/dist/cjs/delay.js.map +0 -1
  34. package/dist/cjs/node/Buffer.d.ts +0 -3
  35. package/dist/cjs/node/Buffer.d.ts.map +0 -1
  36. package/dist/cjs/node/Buffer.js +0 -6
  37. package/dist/cjs/node/Buffer.js.map +0 -1
  38. package/dist/cjs/node/bufferPolyfill.d.ts +0 -2
  39. package/dist/cjs/node/bufferPolyfill.d.ts.map +0 -1
  40. package/dist/cjs/node/bufferPolyfill.js +0 -8
  41. package/dist/cjs/node/bufferPolyfill.js.map +0 -1
  42. package/dist/cjs/node/index.d.ts +0 -3
  43. package/dist/cjs/node/index.d.ts.map +0 -1
  44. package/dist/cjs/node/index.js +0 -6
  45. package/dist/cjs/node/index.js.map +0 -1
  46. package/dist/cjs/nodeIndex.d.ts +0 -3
  47. package/dist/cjs/nodeIndex.d.ts.map +0 -1
  48. package/dist/cjs/nodeIndex.js +0 -9
  49. package/dist/cjs/nodeIndex.js.map +0 -1
  50. package/dist/esm/browser/Buffer.d.ts +0 -3
  51. package/dist/esm/browser/Buffer.d.ts.map +0 -1
  52. package/dist/esm/browser/Buffer.js +0 -3
  53. package/dist/esm/browser/Buffer.js.map +0 -1
  54. package/dist/esm/browser/bufferPolyfill.d.ts +0 -2
  55. package/dist/esm/browser/bufferPolyfill.d.ts.map +0 -1
  56. package/dist/esm/browser/bufferPolyfill.js +0 -11
  57. package/dist/esm/browser/bufferPolyfill.js.map +0 -1
  58. package/dist/esm/browser/index.d.ts +0 -3
  59. package/dist/esm/browser/index.d.ts.map +0 -1
  60. package/dist/esm/browser/index.js +0 -3
  61. package/dist/esm/browser/index.js.map +0 -1
  62. package/dist/esm/browserIndex.d.ts +0 -3
  63. package/dist/esm/browserIndex.d.ts.map +0 -1
  64. package/dist/esm/browserIndex.js +0 -3
  65. package/dist/esm/browserIndex.js.map +0 -1
  66. package/dist/esm/delay.d.ts +0 -2
  67. package/dist/esm/delay.d.ts.map +0 -1
  68. package/dist/esm/delay.js +0 -4
  69. package/dist/esm/delay.js.map +0 -1
  70. package/dist/esm/node/Buffer.d.ts +0 -3
  71. package/dist/esm/node/Buffer.d.ts.map +0 -1
  72. package/dist/esm/node/Buffer.js +0 -3
  73. package/dist/esm/node/Buffer.js.map +0 -1
  74. package/dist/esm/node/bufferPolyfill.d.ts +0 -2
  75. package/dist/esm/node/bufferPolyfill.d.ts.map +0 -1
  76. package/dist/esm/node/bufferPolyfill.js +0 -4
  77. package/dist/esm/node/bufferPolyfill.js.map +0 -1
  78. package/dist/esm/node/index.d.ts +0 -3
  79. package/dist/esm/node/index.d.ts.map +0 -1
  80. package/dist/esm/node/index.js +0 -3
  81. package/dist/esm/node/index.js.map +0 -1
  82. package/dist/esm/nodeIndex.d.ts +0 -3
  83. package/dist/esm/nodeIndex.d.ts.map +0 -1
  84. package/dist/esm/nodeIndex.js +0 -3
  85. package/dist/esm/nodeIndex.js.map +0 -1
@@ -4,7 +4,13 @@
4
4
  "outDir": "./dist/cjs",
5
5
  "target": "ES6"
6
6
  },
7
- "exclude": ["src/**/*.spec.ts"],
7
+ "exclude": [
8
+ "**/*.spec.*",
9
+ "**/*.stories.*",
10
+ "**/*.example.*"
11
+ ],
8
12
  "extends": "./tsconfig.json",
9
- "include": ["src"]
13
+ "include": [
14
+ "src"
15
+ ]
10
16
  }
@@ -4,7 +4,13 @@
4
4
  "outDir": "./dist/esm",
5
5
  "target": "ES2022"
6
6
  },
7
- "exclude": ["src/**/*.spec.ts"],
7
+ "exclude": [
8
+ "**/*.spec.*",
9
+ "**/*.stories.*",
10
+ "**/*.example.*"
11
+ ],
8
12
  "extends": "./tsconfig.json",
9
- "include": ["src"]
13
+ "include": [
14
+ "src"
15
+ ]
10
16
  }
@@ -1,4 +1,4 @@
1
- import { forget } from './forget';
2
- export { forget };
1
+ import { forget, ForgetPromise } from './forget';
2
+ export { forget, ForgetPromise };
3
3
  export default forget;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA;AAGhC,eAAe,MAAM,CAAA"}
package/dist/cjs/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.forget = void 0;
3
+ exports.ForgetPromise = exports.forget = void 0;
4
4
  const forget_1 = require("./forget");
5
5
  Object.defineProperty(exports, "forget", { enumerable: true, get: function () { return forget_1.forget; } });
6
+ Object.defineProperty(exports, "ForgetPromise", { enumerable: true, get: function () { return forget_1.ForgetPromise; } });
6
7
  // eslint-disable-next-line import/no-default-export
7
8
  exports.default = forget_1.forget;
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAExB,uFAFA,eAAM,OAEA;AAEf,oDAAoD;AACpD,kBAAe,eAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAEvC,uFAFA,eAAM,OAEA;AAAE,8FAFA,sBAAa,OAEA;AAE9B,oDAAoD;AACpD,kBAAe,eAAM,CAAA"}
package/dist/docs.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "originalName": "",
8
8
  "children": [
9
9
  {
10
- "id": 5,
10
+ "id": 19,
11
11
  "name": "default",
12
12
  "kind": 8388608,
13
13
  "kindString": "Reference",
@@ -17,11 +17,255 @@
17
17
  "fileName": "index.ts",
18
18
  "line": 6,
19
19
  "character": 0,
20
- "url": "https://github.com/xylabs/sdk-js/blob/ff7d0bd/packages/forget/src/index.ts#L6"
20
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/index.ts#L6"
21
21
  }
22
22
  ],
23
23
  "target": 1
24
24
  },
25
+ {
26
+ "id": 5,
27
+ "name": "ForgetPromise",
28
+ "kind": 128,
29
+ "kindString": "Class",
30
+ "flags": {},
31
+ "children": [
32
+ {
33
+ "id": 17,
34
+ "name": "constructor",
35
+ "kind": 512,
36
+ "kindString": "Constructor",
37
+ "flags": {},
38
+ "signatures": [
39
+ {
40
+ "id": 18,
41
+ "name": "new ForgetPromise",
42
+ "kind": 16384,
43
+ "kindString": "Constructor signature",
44
+ "flags": {},
45
+ "type": {
46
+ "type": "reference",
47
+ "id": 5,
48
+ "name": "ForgetPromise"
49
+ }
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "id": 8,
55
+ "name": "activeForgets",
56
+ "kind": 1024,
57
+ "kindString": "Property",
58
+ "flags": {
59
+ "isStatic": true
60
+ },
61
+ "sources": [
62
+ {
63
+ "fileName": "forget.ts",
64
+ "line": 13,
65
+ "character": 9,
66
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/forget.ts#L13"
67
+ }
68
+ ],
69
+ "type": {
70
+ "type": "intrinsic",
71
+ "name": "number"
72
+ },
73
+ "defaultValue": "0"
74
+ },
75
+ {
76
+ "id": 6,
77
+ "name": "active",
78
+ "kind": 262144,
79
+ "kindString": "Accessor",
80
+ "flags": {
81
+ "isStatic": true
82
+ },
83
+ "sources": [
84
+ {
85
+ "fileName": "forget.ts",
86
+ "line": 9,
87
+ "character": 13,
88
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/forget.ts#L9"
89
+ }
90
+ ],
91
+ "getSignature": {
92
+ "id": 7,
93
+ "name": "active",
94
+ "kind": 524288,
95
+ "kindString": "Get signature",
96
+ "flags": {},
97
+ "type": {
98
+ "type": "intrinsic",
99
+ "name": "boolean"
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "id": 9,
105
+ "name": "awaitInactive",
106
+ "kind": 2048,
107
+ "kindString": "Method",
108
+ "flags": {
109
+ "isStatic": true
110
+ },
111
+ "sources": [
112
+ {
113
+ "fileName": "forget.ts",
114
+ "line": 15,
115
+ "character": 15,
116
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/forget.ts#L15"
117
+ }
118
+ ],
119
+ "signatures": [
120
+ {
121
+ "id": 10,
122
+ "name": "awaitInactive",
123
+ "kind": 4096,
124
+ "kindString": "Call signature",
125
+ "flags": {},
126
+ "parameters": [
127
+ {
128
+ "id": 11,
129
+ "name": "interval",
130
+ "kind": 32768,
131
+ "kindString": "Parameter",
132
+ "flags": {},
133
+ "type": {
134
+ "type": "intrinsic",
135
+ "name": "number"
136
+ },
137
+ "defaultValue": "100"
138
+ },
139
+ {
140
+ "id": 12,
141
+ "name": "timeout",
142
+ "kind": 32768,
143
+ "kindString": "Parameter",
144
+ "flags": {
145
+ "isOptional": true
146
+ },
147
+ "type": {
148
+ "type": "intrinsic",
149
+ "name": "number"
150
+ }
151
+ }
152
+ ],
153
+ "type": {
154
+ "type": "reference",
155
+ "typeArguments": [
156
+ {
157
+ "type": "intrinsic",
158
+ "name": "number"
159
+ }
160
+ ],
161
+ "name": "Promise",
162
+ "qualifiedName": "Promise",
163
+ "package": "typescript"
164
+ }
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "id": 13,
170
+ "name": "forget",
171
+ "kind": 2048,
172
+ "kindString": "Method",
173
+ "flags": {
174
+ "isStatic": true
175
+ },
176
+ "sources": [
177
+ {
178
+ "fileName": "forget.ts",
179
+ "line": 30,
180
+ "character": 9,
181
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/forget.ts#L30"
182
+ }
183
+ ],
184
+ "signatures": [
185
+ {
186
+ "id": 14,
187
+ "name": "forget",
188
+ "kind": 4096,
189
+ "kindString": "Call signature",
190
+ "flags": {},
191
+ "parameters": [
192
+ {
193
+ "id": 15,
194
+ "name": "promise",
195
+ "kind": 32768,
196
+ "kindString": "Parameter",
197
+ "flags": {},
198
+ "type": {
199
+ "type": "reference",
200
+ "typeArguments": [
201
+ {
202
+ "type": "intrinsic",
203
+ "name": "unknown"
204
+ }
205
+ ],
206
+ "name": "Promise",
207
+ "qualifiedName": "Promise",
208
+ "package": "typescript"
209
+ }
210
+ },
211
+ {
212
+ "id": 16,
213
+ "name": "timeout",
214
+ "kind": 32768,
215
+ "kindString": "Parameter",
216
+ "flags": {
217
+ "isOptional": true
218
+ },
219
+ "type": {
220
+ "type": "reference",
221
+ "name": "ForgetTimeoutConfig"
222
+ }
223
+ }
224
+ ],
225
+ "type": {
226
+ "type": "intrinsic",
227
+ "name": "void"
228
+ }
229
+ }
230
+ ]
231
+ }
232
+ ],
233
+ "groups": [
234
+ {
235
+ "title": "Constructors",
236
+ "children": [
237
+ 17
238
+ ]
239
+ },
240
+ {
241
+ "title": "Properties",
242
+ "children": [
243
+ 8
244
+ ]
245
+ },
246
+ {
247
+ "title": "Accessors",
248
+ "children": [
249
+ 6
250
+ ]
251
+ },
252
+ {
253
+ "title": "Methods",
254
+ "children": [
255
+ 9,
256
+ 13
257
+ ]
258
+ }
259
+ ],
260
+ "sources": [
261
+ {
262
+ "fileName": "forget.ts",
263
+ "line": 8,
264
+ "character": 13,
265
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/forget.ts#L8"
266
+ }
267
+ ]
268
+ },
25
269
  {
26
270
  "id": 1,
27
271
  "name": "forget",
@@ -33,7 +277,7 @@
33
277
  "fileName": "forget.ts",
34
278
  "line": 73,
35
279
  "character": 13,
36
- "url": "https://github.com/xylabs/sdk-js/blob/ff7d0bd/packages/forget/src/forget.ts#L73"
280
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/forget.ts#L73"
37
281
  }
38
282
  ],
39
283
  "signatures": [
@@ -88,6 +332,12 @@
88
332
  "groups": [
89
333
  {
90
334
  "title": "References",
335
+ "children": [
336
+ 19
337
+ ]
338
+ },
339
+ {
340
+ "title": "Classes",
91
341
  "children": [
92
342
  5
93
343
  ]
@@ -104,7 +354,7 @@
104
354
  "fileName": "index.ts",
105
355
  "line": 1,
106
356
  "character": 0,
107
- "url": "https://github.com/xylabs/sdk-js/blob/ff7d0bd/packages/forget/src/index.ts#L1"
357
+ "url": "https://github.com/xylabs/sdk-js/blob/8b2ff0a/packages/forget/src/index.ts#L1"
108
358
  }
109
359
  ]
110
360
  }
@@ -1,4 +1,4 @@
1
- import { forget } from './forget';
2
- export { forget };
1
+ import { forget, ForgetPromise } from './forget';
2
+ export { forget, ForgetPromise };
3
3
  export default forget;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA;AAGhC,eAAe,MAAM,CAAA"}
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { forget } from './forget';
2
- export { forget };
1
+ import { forget, ForgetPromise } from './forget';
2
+ export { forget, ForgetPromise };
3
3
  // eslint-disable-next-line import/no-default-export
4
4
  export default forget;
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB,oDAAoD;AACpD,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA;AAEhC,oDAAoD;AACpD,eAAe,MAAM,CAAA"}
package/package.json CHANGED
@@ -41,12 +41,11 @@
41
41
  "esm"
42
42
  ],
43
43
  "dependencies": {
44
- "@xylabs/delay": "^2.6.4",
44
+ "@xylabs/delay": "^2.6.7",
45
45
  "tslib": "^2.4.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^18.6.5",
49
- "@xylabs/tsconfig": "^2.5.75"
48
+ "@xylabs/tsconfig": "^2.5.119"
50
49
  },
51
50
  "publishConfig": {
52
51
  "access": "public"
@@ -59,5 +58,5 @@
59
58
  "uuid": "^8"
60
59
  },
61
60
  "sideEffects": false,
62
- "version": "2.6.4"
61
+ "version": "2.6.7"
63
62
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { forget } from './forget'
1
+ import { forget, ForgetPromise } from './forget'
2
2
 
3
- export { forget }
3
+ export { forget, ForgetPromise }
4
4
 
5
5
  // eslint-disable-next-line import/no-default-export
6
6
  export default forget
@@ -1,3 +0,0 @@
1
- import { Buffer as BrowserBuffer } from 'buffer/';
2
- export { BrowserBuffer };
3
- //# sourceMappingURL=Buffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["../../../src/browser/Buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAEjD,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BrowserBuffer = void 0;
4
- const buffer_1 = require("buffer/");
5
- Object.defineProperty(exports, "BrowserBuffer", { enumerable: true, get: function () { return buffer_1.Buffer; } });
6
- //# sourceMappingURL=Buffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.js","sourceRoot":"","sources":["../../../src/browser/Buffer.ts"],"names":[],"mappings":";;;AAAA,oCAAiD;AAExC,8FAFU,eAAa,OAEV"}
@@ -1,2 +0,0 @@
1
- export declare const bufferPolyfillBrowser: () => void;
2
- //# sourceMappingURL=bufferPolyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.d.ts","sourceRoot":"","sources":["../../../src/browser/bufferPolyfill.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,YAQjC,CAAA"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bufferPolyfillBrowser = void 0;
4
- const Buffer_1 = require("./Buffer");
5
- const bufferPolyfillBrowser = () => {
6
- if (window !== undefined) {
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
- const global = window;
9
- if (global.Buffer === undefined) {
10
- global.Buffer = Buffer_1.BrowserBuffer;
11
- }
12
- }
13
- };
14
- exports.bufferPolyfillBrowser = bufferPolyfillBrowser;
15
- //# sourceMappingURL=bufferPolyfill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.js","sourceRoot":"","sources":["../../../src/browser/bufferPolyfill.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AAEjC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,8DAA8D;QAC9D,MAAM,MAAM,GAAG,MAAa,CAAA;QAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;YAC/B,MAAM,CAAC,MAAM,GAAG,sBAAa,CAAA;SAC9B;KACF;AACH,CAAC,CAAA;AARY,QAAA,qBAAqB,yBAQjC"}
@@ -1,3 +0,0 @@
1
- export * from './Buffer';
2
- export * from './bufferPolyfill';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Buffer"), exports);
5
- tslib_1.__exportStar(require("./bufferPolyfill"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,2DAAgC"}
@@ -1,3 +0,0 @@
1
- export * from './browser';
2
- export { BrowserBuffer as Buffer, bufferPolyfillBrowser as bufferPolyfill } from './browser';
3
- //# sourceMappingURL=browserIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserIndex.d.ts","sourceRoot":"","sources":["../../src/browserIndex.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,qBAAqB,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bufferPolyfill = exports.Buffer = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./browser"), exports);
6
- var browser_1 = require("./browser");
7
- Object.defineProperty(exports, "Buffer", { enumerable: true, get: function () { return browser_1.BrowserBuffer; } });
8
- Object.defineProperty(exports, "bufferPolyfill", { enumerable: true, get: function () { return browser_1.bufferPolyfillBrowser; } });
9
- //# sourceMappingURL=browserIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserIndex.js","sourceRoot":"","sources":["../../src/browserIndex.ts"],"names":[],"mappings":";;;;AAAA,oDAAyB;AACzB,qCAA4F;AAAnF,iGAAA,aAAa,OAAU;AAAE,yGAAA,qBAAqB,OAAkB"}
@@ -1,2 +0,0 @@
1
- export declare const delay: (ms: number) => Promise<unknown>;
2
- //# sourceMappingURL=delay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAE/B,CAAA"}
package/dist/cjs/delay.js DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.delay = void 0;
4
- const delay = (ms) => {
5
- return new Promise((resolve) => setTimeout(resolve, ms));
6
- };
7
- exports.delay = delay;
8
- //# sourceMappingURL=delay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delay.js","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":";;;AAAO,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE;IAClC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC,CAAA;AAFY,QAAA,KAAK,SAEjB"}
@@ -1,3 +0,0 @@
1
- import { Buffer } from 'buffer';
2
- export { Buffer as NodeBuffer };
3
- //# sourceMappingURL=Buffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["../../../src/node/Buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeBuffer = void 0;
4
- const buffer_1 = require("buffer");
5
- Object.defineProperty(exports, "NodeBuffer", { enumerable: true, get: function () { return buffer_1.Buffer; } });
6
- //# sourceMappingURL=Buffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.js","sourceRoot":"","sources":["../../../src/node/Buffer.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AACZ,2FADV,eAAM,OACc"}
@@ -1,2 +0,0 @@
1
- export declare const bufferPolyfillNode: () => void;
2
- //# sourceMappingURL=bufferPolyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.d.ts","sourceRoot":"","sources":["../../../src/node/bufferPolyfill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,YAE9B,CAAA"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bufferPolyfillNode = void 0;
4
- const bufferPolyfillNode = () => {
5
- return;
6
- };
7
- exports.bufferPolyfillNode = bufferPolyfillNode;
8
- //# sourceMappingURL=bufferPolyfill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.js","sourceRoot":"","sources":["../../../src/node/bufferPolyfill.ts"],"names":[],"mappings":";;;AAAO,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAM;AACR,CAAC,CAAA;AAFY,QAAA,kBAAkB,sBAE9B"}
@@ -1,3 +0,0 @@
1
- export * from './Buffer';
2
- export * from './bufferPolyfill';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Buffer"), exports);
5
- tslib_1.__exportStar(require("./bufferPolyfill"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,2DAAgC"}
@@ -1,3 +0,0 @@
1
- export * from './node';
2
- export { NodeBuffer as Buffer, bufferPolyfillNode as bufferPolyfill } from './node';
3
- //# sourceMappingURL=nodeIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeIndex.d.ts","sourceRoot":"","sources":["../../src/nodeIndex.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,kBAAkB,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAA"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bufferPolyfill = exports.Buffer = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./node"), exports);
6
- var node_1 = require("./node");
7
- Object.defineProperty(exports, "Buffer", { enumerable: true, get: function () { return node_1.NodeBuffer; } });
8
- Object.defineProperty(exports, "bufferPolyfill", { enumerable: true, get: function () { return node_1.bufferPolyfillNode; } });
9
- //# sourceMappingURL=nodeIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeIndex.js","sourceRoot":"","sources":["../../src/nodeIndex.ts"],"names":[],"mappings":";;;;AAAA,iDAAsB;AACtB,+BAAmF;AAA1E,8FAAA,UAAU,OAAU;AAAE,sGAAA,kBAAkB,OAAkB"}
@@ -1,3 +0,0 @@
1
- import { Buffer as BrowserBuffer } from 'buffer/';
2
- export { BrowserBuffer };
3
- //# sourceMappingURL=Buffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["../../../src/browser/Buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAEjD,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Buffer as BrowserBuffer } from 'buffer/';
2
- export { BrowserBuffer };
3
- //# sourceMappingURL=Buffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.js","sourceRoot":"","sources":["../../../src/browser/Buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAEjD,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const bufferPolyfillBrowser: () => void;
2
- //# sourceMappingURL=bufferPolyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.d.ts","sourceRoot":"","sources":["../../../src/browser/bufferPolyfill.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,YAQjC,CAAA"}
@@ -1,11 +0,0 @@
1
- import { BrowserBuffer } from './Buffer';
2
- export const bufferPolyfillBrowser = () => {
3
- if (window !== undefined) {
4
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
- const global = window;
6
- if (global.Buffer === undefined) {
7
- global.Buffer = BrowserBuffer;
8
- }
9
- }
10
- };
11
- //# sourceMappingURL=bufferPolyfill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.js","sourceRoot":"","sources":["../../../src/browser/bufferPolyfill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,8DAA8D;QAC9D,MAAM,MAAM,GAAG,MAAa,CAAA;QAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;YAC/B,MAAM,CAAC,MAAM,GAAG,aAAa,CAAA;SAC9B;KACF;AACH,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Buffer';
2
- export * from './bufferPolyfill';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Buffer';
2
- export * from './bufferPolyfill';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './browser';
2
- export { BrowserBuffer as Buffer, bufferPolyfillBrowser as bufferPolyfill } from './browser';
3
- //# sourceMappingURL=browserIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserIndex.d.ts","sourceRoot":"","sources":["../../src/browserIndex.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,qBAAqB,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './browser';
2
- export { BrowserBuffer as Buffer, bufferPolyfillBrowser as bufferPolyfill } from './browser';
3
- //# sourceMappingURL=browserIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browserIndex.js","sourceRoot":"","sources":["../../src/browserIndex.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,qBAAqB,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const delay: (ms: number) => Promise<unknown>;
2
- //# sourceMappingURL=delay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAE/B,CAAA"}
package/dist/esm/delay.js DELETED
@@ -1,4 +0,0 @@
1
- export const delay = (ms) => {
2
- return new Promise((resolve) => setTimeout(resolve, ms));
3
- };
4
- //# sourceMappingURL=delay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delay.js","sourceRoot":"","sources":["../../src/delay.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE;IAClC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Buffer } from 'buffer';
2
- export { Buffer as NodeBuffer };
3
- //# sourceMappingURL=Buffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["../../../src/node/Buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Buffer } from 'buffer';
2
- export { Buffer as NodeBuffer };
3
- //# sourceMappingURL=Buffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Buffer.js","sourceRoot":"","sources":["../../../src/node/Buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const bufferPolyfillNode: () => void;
2
- //# sourceMappingURL=bufferPolyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.d.ts","sourceRoot":"","sources":["../../../src/node/bufferPolyfill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,YAE9B,CAAA"}
@@ -1,4 +0,0 @@
1
- export const bufferPolyfillNode = () => {
2
- return;
3
- };
4
- //# sourceMappingURL=bufferPolyfill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bufferPolyfill.js","sourceRoot":"","sources":["../../../src/node/bufferPolyfill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAM;AACR,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Buffer';
2
- export * from './bufferPolyfill';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Buffer';
2
- export * from './bufferPolyfill';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './node';
2
- export { NodeBuffer as Buffer, bufferPolyfillNode as bufferPolyfill } from './node';
3
- //# sourceMappingURL=nodeIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeIndex.d.ts","sourceRoot":"","sources":["../../src/nodeIndex.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,kBAAkB,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './node';
2
- export { NodeBuffer as Buffer, bufferPolyfillNode as bufferPolyfill } from './node';
3
- //# sourceMappingURL=nodeIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nodeIndex.js","sourceRoot":"","sources":["../../src/nodeIndex.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,kBAAkB,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAA"}