@lorikeetai/node-sdk 0.1.0-beta.4 → 0.2.0
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/CHANGELOG.md +40 -0
- package/README.md +11 -11
- package/_shims/MultipartBody.js.map +1 -1
- package/_shims/MultipartBody.mjs.map +1 -1
- package/_shims/auto/runtime-bun.d.ts.map +1 -1
- package/_shims/auto/runtime-bun.js.map +1 -1
- package/_shims/auto/runtime-node.d.ts.map +1 -1
- package/_shims/auto/runtime-node.js.map +1 -1
- package/_shims/auto/runtime.d.ts.map +1 -1
- package/_shims/auto/runtime.js.map +1 -1
- package/_shims/auto/types-node.d.ts.map +1 -1
- package/_shims/auto/types-node.js.map +1 -1
- package/_shims/auto/types.d.ts +52 -52
- package/_shims/bun-runtime.d.ts.map +1 -1
- package/_shims/bun-runtime.js.map +1 -1
- package/_shims/bun-runtime.mjs.map +1 -1
- package/_shims/index.d.ts +36 -36
- package/_shims/index.js +5 -5
- package/_shims/index.mjs +4 -4
- package/_shims/node-runtime.d.ts.map +1 -1
- package/_shims/node-runtime.js.map +1 -1
- package/_shims/node-runtime.mjs.map +1 -1
- package/_shims/node-types.d.ts +27 -27
- package/_shims/registry.d.ts.map +1 -1
- package/_shims/registry.js.map +1 -1
- package/_shims/registry.mjs.map +1 -1
- package/_shims/web-runtime.d.ts.map +1 -1
- package/_shims/web-runtime.js.map +1 -1
- package/_shims/web-runtime.mjs.map +1 -1
- package/_shims/web-types.d.ts +52 -52
- package/core.d.ts.map +1 -1
- package/core.js +0 -1
- package/core.js.map +1 -1
- package/core.mjs +0 -1
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/error.js.map +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/lib/generate-signature.js.map +1 -1
- package/lib/generate-signature.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/conversation/chat.d.ts +9 -5
- package/resources/conversation/chat.d.ts.map +1 -1
- package/resources/conversation/chat.js +3 -3
- package/resources/conversation/chat.js.map +1 -1
- package/resources/conversation/chat.mjs +3 -3
- package/resources/conversation/chat.mjs.map +1 -1
- package/resources/conversation/conversation.d.ts.map +1 -1
- package/resources/conversation/conversation.js.map +1 -1
- package/resources/conversation/conversation.mjs.map +1 -1
- package/resources/conversation/email.d.ts +6 -2
- package/resources/conversation/email.d.ts.map +1 -1
- package/resources/conversation/email.js +1 -1
- package/resources/conversation/email.js.map +1 -1
- package/resources/conversation/email.mjs +1 -1
- package/resources/conversation/email.mjs.map +1 -1
- package/resources/conversation/index.d.ts.map +1 -1
- package/resources/conversation/index.js.map +1 -1
- package/resources/customer.d.ts +61 -0
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +12 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +8 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ingest.d.ts.map +1 -1
- package/resources/ingest.js.map +1 -1
- package/resources/ingest.mjs.map +1 -1
- package/resources/token.d.ts.map +1 -1
- package/resources/token.js.map +1 -1
- package/resources/token.mjs.map +1 -1
- package/shims/node.d.ts.map +1 -1
- package/shims/node.js.map +1 -1
- package/shims/node.mjs.map +1 -1
- package/shims/web.d.ts.map +1 -1
- package/shims/web.js.map +1 -1
- package/shims/web.mjs.map +1 -1
- package/src/_shims/MultipartBody.ts +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/auto/types.d.ts +52 -52
- package/src/_shims/bun-runtime.ts +6 -6
- package/src/_shims/index.d.ts +36 -36
- package/src/_shims/index.js +5 -5
- package/src/_shims/index.mjs +4 -4
- package/src/_shims/node-runtime.ts +32 -32
- package/src/_shims/node-types.d.ts +27 -27
- package/src/_shims/registry.ts +44 -44
- package/src/_shims/web-runtime.ts +16 -16
- package/src/_shims/web-types.d.ts +52 -52
- package/src/core.ts +372 -372
- package/src/error.ts +37 -37
- package/src/index.ts +74 -65
- package/src/lib/generate-signature.ts +3 -3
- package/src/resource.ts +3 -3
- package/src/resources/conversation/chat.ts +23 -18
- package/src/resources/conversation/conversation.ts +11 -11
- package/src/resources/conversation/email.ts +12 -7
- package/src/resources/conversation/index.ts +3 -3
- package/src/resources/customer.ts +81 -0
- package/src/resources/index.ts +4 -3
- package/src/resources/ingest.ts +7 -7
- package/src/resources/token.ts +9 -9
- package/src/shims/node.ts +24 -24
- package/src/shims/web.ts +24 -24
- package/src/uploads.ts +72 -72
- package/src/version.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js.map +1 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 (2024-11-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0...v0.2.0](https://github.com/optechai/node-sdk/compare/v0.1.0...v0.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* chore: re-add prettier formatting ([4329850](https://github.com/optechai/node-sdk/commit/4329850f92d35ef676d64c716b1a795756d07f81))
|
|
10
|
+
* chore: run format ([4a3a193](https://github.com/optechai/node-sdk/commit/4a3a193d1cf2cecfeab8945970cc95afcab8a9a2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Chores
|
|
14
|
+
|
|
15
|
+
* **internal:** version bump ([#66](https://github.com/optechai/node-sdk/issues/66)) ([ceeac75](https://github.com/optechai/node-sdk/commit/ceeac75db5f11ed8d763fd1a73e65a0d310b7313))
|
|
16
|
+
* little whoopsie ([6ad3de4](https://github.com/optechai/node-sdk/commit/6ad3de4610c7b5639c246fa7e7de3a78ea952089))
|
|
17
|
+
* re-add prettier formatting ([fdbaae6](https://github.com/optechai/node-sdk/commit/fdbaae608e3c80f0be78474f2dfba95f7fcb366d))
|
|
18
|
+
* run format ([82e0c78](https://github.com/optechai/node-sdk/commit/82e0c7871984c2c3d6812f50008df8866976427f))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Documentation
|
|
22
|
+
|
|
23
|
+
* add example ([115fd30](https://github.com/optechai/node-sdk/commit/115fd30d7b09be6d0bd3836d480fe9ae35c568ba))
|
|
24
|
+
|
|
25
|
+
## 0.1.0 (2024-11-06)
|
|
26
|
+
|
|
27
|
+
Full Changelog: [v0.1.0-beta.4...v0.1.0](https://github.com/optechai/node-sdk/compare/v0.1.0-beta.4...v0.1.0)
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **api:** api update ([#61](https://github.com/optechai/node-sdk/issues/61)) ([73e1cbe](https://github.com/optechai/node-sdk/commit/73e1cbe93af2516a416685314ef04e0165d71a43))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* **api:** manual updates ([#62](https://github.com/optechai/node-sdk/issues/62)) ([5e39228](https://github.com/optechai/node-sdk/commit/5e39228db2d8eda672d30975f1fc16e1a5578f13))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Chores
|
|
40
|
+
|
|
41
|
+
* **internal:** version bump ([#59](https://github.com/optechai/node-sdk/issues/59)) ([a87f7a8](https://github.com/optechai/node-sdk/commit/a87f7a84d223ad786af7bc57bd8c977e397ba646))
|
|
42
|
+
|
|
3
43
|
## 0.1.0-beta.4 (2024-11-05)
|
|
4
44
|
|
|
5
45
|
Full Changelog: [v0.1.0-beta.3...v0.1.0-beta.4](https://github.com/optechai/node-sdk/compare/v0.1.0-beta.3...v0.1.0-beta.4)
|
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ Options on the client, such as retries, will be respected when making these requ
|
|
|
176
176
|
await client.post('/some/path', {
|
|
177
177
|
body: { some_prop: 'foo' },
|
|
178
178
|
query: { some_query_arg: 'bar' },
|
|
179
|
-
})
|
|
179
|
+
});
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
#### Undocumented request params
|
|
@@ -191,7 +191,7 @@ client.foo.create({
|
|
|
191
191
|
bar: 12,
|
|
192
192
|
// @ts-expect-error baz is not yet public
|
|
193
193
|
baz: 'undocumented option',
|
|
194
|
-
})
|
|
194
|
+
});
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
|
|
@@ -217,8 +217,8 @@ add the following import before your first import `from "Lorikeet"`:
|
|
|
217
217
|
```ts
|
|
218
218
|
// Tell TypeScript and the package to use the global web fetch instead of node-fetch.
|
|
219
219
|
// Note, despite the name, this does not add any polyfills, but expects them to be provided if needed.
|
|
220
|
-
import '@lorikeetai/node-sdk/shims/web'
|
|
221
|
-
import Lorikeet from '@lorikeetai/node-sdk'
|
|
220
|
+
import '@lorikeetai/node-sdk/shims/web';
|
|
221
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
To do the inverse, add `import "@lorikeetai/node-sdk/shims/node"` (which does import polyfills).
|
|
@@ -230,17 +230,17 @@ You may also provide a custom `fetch` function when instantiating the client,
|
|
|
230
230
|
which can be used to inspect or alter the `Request` or `Response` before/after each request:
|
|
231
231
|
|
|
232
232
|
```ts
|
|
233
|
-
import { fetch } from 'undici' // as one example
|
|
234
|
-
import Lorikeet from '@lorikeetai/node-sdk'
|
|
233
|
+
import { fetch } from 'undici'; // as one example
|
|
234
|
+
import Lorikeet from '@lorikeetai/node-sdk';
|
|
235
235
|
|
|
236
236
|
const client = new Lorikeet({
|
|
237
237
|
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
|
|
238
|
-
console.log('About to make a request', url, init)
|
|
239
|
-
const response = await fetch(url, init)
|
|
240
|
-
console.log('Got response', response)
|
|
241
|
-
return response
|
|
238
|
+
console.log('About to make a request', url, init);
|
|
239
|
+
const response = await fetch(url, init);
|
|
240
|
+
console.log('Got response', response);
|
|
241
|
+
return response;
|
|
242
242
|
},
|
|
243
|
-
})
|
|
243
|
+
});
|
|
244
244
|
```
|
|
245
245
|
|
|
246
246
|
Note that if given a `DEBUG=true` environment variable, this library will log all requests and responses automatically.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipartBody.js","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,aAAa;IACxB,YAAmB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAG,CAAC;IAChC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,eAAe,
|
|
1
|
+
{"version":3,"file":"MultipartBody.js","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,aAAa;IACxB,YAAmB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAG,CAAC;IAChC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AALD,sCAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipartBody.mjs","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB,YAAmB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAG,CAAC;IAChC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,eAAe,
|
|
1
|
+
{"version":3,"file":"MultipartBody.mjs","sourceRoot":"","sources":["../src/_shims/MultipartBody.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB,YAAmB,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;IAAG,CAAC;IAChC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACtB,OAAO,eAAe,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-bun.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gBAAgB,
|
|
1
|
+
{"version":3,"file":"runtime-bun.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-bun.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"runtime-bun.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime-bun.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,iBAAiB,
|
|
1
|
+
{"version":3,"file":"runtime-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-node.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"runtime-node.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qDAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gBAAgB,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/_shims/auto/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,eAAe,
|
|
1
|
+
{"version":3,"file":"types-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-node.js","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"types-node.js","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA8B"}
|
package/_shims/auto/types.d.ts
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
export type Agent = any
|
|
4
|
+
export type Agent = any;
|
|
5
5
|
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
declare const _fetch: unknown extends typeof fetch ? never : typeof fetch
|
|
8
|
-
export { _fetch as fetch }
|
|
7
|
+
declare const _fetch: unknown extends typeof fetch ? never : typeof fetch;
|
|
8
|
+
export { _fetch as fetch };
|
|
9
9
|
|
|
10
10
|
// @ts-ignore
|
|
11
|
-
type _Request = unknown extends Request ? never : Request
|
|
12
|
-
export { _Request as Request }
|
|
11
|
+
type _Request = unknown extends Request ? never : Request;
|
|
12
|
+
export { _Request as Request };
|
|
13
13
|
|
|
14
14
|
// @ts-ignore
|
|
15
|
-
type _RequestInfo = unknown extends RequestInfo ? never : RequestInfo
|
|
16
|
-
export { type _RequestInfo as RequestInfo }
|
|
15
|
+
type _RequestInfo = unknown extends RequestInfo ? never : RequestInfo;
|
|
16
|
+
export { type _RequestInfo as RequestInfo };
|
|
17
17
|
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
type _RequestInit = unknown extends RequestInit ? never : RequestInit
|
|
20
|
-
export { type _RequestInit as RequestInit }
|
|
19
|
+
type _RequestInit = unknown extends RequestInit ? never : RequestInit;
|
|
20
|
+
export { type _RequestInit as RequestInit };
|
|
21
21
|
|
|
22
22
|
// @ts-ignore
|
|
23
|
-
type _Response = unknown extends Response ? never : Response
|
|
24
|
-
export { _Response as Response }
|
|
23
|
+
type _Response = unknown extends Response ? never : Response;
|
|
24
|
+
export { _Response as Response };
|
|
25
25
|
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit
|
|
28
|
-
export { type _ResponseInit as ResponseInit }
|
|
27
|
+
type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit;
|
|
28
|
+
export { type _ResponseInit as ResponseInit };
|
|
29
29
|
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
type _ResponseType = unknown extends ResponseType ? never : ResponseType
|
|
32
|
-
export { type _ResponseType as ResponseType }
|
|
31
|
+
type _ResponseType = unknown extends ResponseType ? never : ResponseType;
|
|
32
|
+
export { type _ResponseType as ResponseType };
|
|
33
33
|
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
type _BodyInit = unknown extends BodyInit ? never : BodyInit
|
|
36
|
-
export { type _BodyInit as BodyInit }
|
|
35
|
+
type _BodyInit = unknown extends BodyInit ? never : BodyInit;
|
|
36
|
+
export { type _BodyInit as BodyInit };
|
|
37
37
|
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
type _Headers = unknown extends Headers ? never : Headers
|
|
40
|
-
export { _Headers as Headers }
|
|
39
|
+
type _Headers = unknown extends Headers ? never : Headers;
|
|
40
|
+
export { _Headers as Headers };
|
|
41
41
|
|
|
42
42
|
// @ts-ignore
|
|
43
|
-
type _HeadersInit = unknown extends HeadersInit ? never : HeadersInit
|
|
44
|
-
export { type _HeadersInit as HeadersInit }
|
|
43
|
+
type _HeadersInit = unknown extends HeadersInit ? never : HeadersInit;
|
|
44
|
+
export { type _HeadersInit as HeadersInit };
|
|
45
45
|
|
|
46
|
-
type EndingType = 'native' | 'transparent'
|
|
46
|
+
type EndingType = 'native' | 'transparent';
|
|
47
47
|
|
|
48
48
|
export interface BlobPropertyBag {
|
|
49
|
-
endings?: EndingType
|
|
50
|
-
type?: string
|
|
49
|
+
endings?: EndingType;
|
|
50
|
+
type?: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export interface FilePropertyBag extends BlobPropertyBag {
|
|
54
|
-
lastModified?: number
|
|
54
|
+
lastModified?: number;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'
|
|
57
|
+
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
|
58
58
|
|
|
59
59
|
// @ts-ignore
|
|
60
|
-
type _FormData = unknown extends FormData ? never : FormData
|
|
60
|
+
type _FormData = unknown extends FormData ? never : FormData;
|
|
61
61
|
// @ts-ignore
|
|
62
|
-
declare const _FormData: unknown extends typeof FormData ? never : typeof FormData
|
|
63
|
-
export { _FormData as FormData }
|
|
62
|
+
declare const _FormData: unknown extends typeof FormData ? never : typeof FormData;
|
|
63
|
+
export { _FormData as FormData };
|
|
64
64
|
|
|
65
65
|
// @ts-ignore
|
|
66
|
-
type _File = unknown extends File ? never : File
|
|
66
|
+
type _File = unknown extends File ? never : File;
|
|
67
67
|
// @ts-ignore
|
|
68
|
-
declare const _File: unknown extends typeof File ? never : typeof File
|
|
69
|
-
export { _File as File }
|
|
68
|
+
declare const _File: unknown extends typeof File ? never : typeof File;
|
|
69
|
+
export { _File as File };
|
|
70
70
|
|
|
71
71
|
// @ts-ignore
|
|
72
|
-
type _Blob = unknown extends Blob ? never : Blob
|
|
72
|
+
type _Blob = unknown extends Blob ? never : Blob;
|
|
73
73
|
// @ts-ignore
|
|
74
|
-
declare const _Blob: unknown extends typeof Blob ? never : typeof Blob
|
|
75
|
-
export { _Blob as Blob }
|
|
74
|
+
declare const _Blob: unknown extends typeof Blob ? never : typeof Blob;
|
|
75
|
+
export { _Blob as Blob };
|
|
76
76
|
|
|
77
77
|
export declare class Readable {
|
|
78
|
-
readable: boolean
|
|
79
|
-
readonly readableEnded: boolean
|
|
80
|
-
readonly readableFlowing: boolean | null
|
|
81
|
-
readonly readableHighWaterMark: number
|
|
82
|
-
readonly readableLength: number
|
|
83
|
-
readonly readableObjectMode: boolean
|
|
84
|
-
destroyed: boolean
|
|
85
|
-
read(size?: number): any
|
|
86
|
-
pause(): this
|
|
87
|
-
resume(): this
|
|
88
|
-
isPaused(): boolean
|
|
89
|
-
destroy(error?: Error): this
|
|
90
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<any
|
|
78
|
+
readable: boolean;
|
|
79
|
+
readonly readableEnded: boolean;
|
|
80
|
+
readonly readableFlowing: boolean | null;
|
|
81
|
+
readonly readableHighWaterMark: number;
|
|
82
|
+
readonly readableLength: number;
|
|
83
|
+
readonly readableObjectMode: boolean;
|
|
84
|
+
destroyed: boolean;
|
|
85
|
+
read(size?: number): any;
|
|
86
|
+
pause(): this;
|
|
87
|
+
resume(): this;
|
|
88
|
+
isPaused(): boolean;
|
|
89
|
+
destroy(error?: Error): this;
|
|
90
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export declare class FsReadStream extends Readable {
|
|
94
|
-
path: {} // node type is string | Buffer
|
|
94
|
+
path: {}; // node type is string | Buffer
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
// @ts-ignore
|
|
98
|
-
type _ReadableStream<R = any> = unknown extends ReadableStream<R> ? never : ReadableStream<R
|
|
98
|
+
type _ReadableStream<R = any> = unknown extends ReadableStream<R> ? never : ReadableStream<R>;
|
|
99
99
|
// @ts-ignore
|
|
100
|
-
declare const _ReadableStream: unknown extends typeof ReadableStream ? never : typeof ReadableStream
|
|
101
|
-
export { _ReadableStream as ReadableStream }
|
|
100
|
+
declare const _ReadableStream: unknown extends typeof ReadableStream ? never : typeof ReadableStream;
|
|
101
|
+
export { _ReadableStream as ReadableStream };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"bun-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAIxC,wBAAgB,UAAU,IAAI,KAAK,CAMlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun-runtime.js","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":";;AAOA,gCAMC;AATD,
|
|
1
|
+
{"version":3,"file":"bun-runtime.js","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":";;AAOA,gCAMC;AATD,kDAA4D;AAC5D,qCAAqD;AAErD,SAAgB,UAAU;IACxB,MAAM,OAAO,GAAG,IAAA,wBAAa,GAAE,CAAC;IAChC,SAAS,cAAc,CAAC,KAAU;QAChC,OAAO,KAAK,YAAY,oBAAY,CAAC;IACvC,CAAC;IACD,OAAO,EAAE,GAAG,OAAO,EAAE,cAAc,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun-runtime.mjs","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":"OAIO,EAAE,UAAU,IAAI,aAAa,EAAE;OAC/B,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS;AAEpD,MAAM,UAAU,UAAU;IACxB,MAAM,OAAO,GAAG,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"bun-runtime.mjs","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":"OAIO,EAAE,UAAU,IAAI,aAAa,EAAE;OAC/B,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS;AAEpD,MAAM,UAAU,UAAU;IACxB,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;IAChC,SAAS,cAAc,CAAC,KAAU;QAChC,OAAO,KAAK,YAAY,YAAY,CAAC;IACvC,CAAC;IACD,OAAO,EAAE,GAAG,OAAO,EAAE,cAAc,EAAE,CAAC;AACxC,CAAC"}
|
package/_shims/index.d.ts
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { manual } from "./manual-types.js"
|
|
5
|
-
import * as auto from '@lorikeetai/node-sdk/_shims/auto/types'
|
|
6
|
-
import { type RequestOptions } from "../core.js"
|
|
4
|
+
import { manual } from "./manual-types.js";
|
|
5
|
+
import * as auto from '@lorikeetai/node-sdk/_shims/auto/types';
|
|
6
|
+
import { type RequestOptions } from "../core.js";
|
|
7
7
|
|
|
8
|
-
type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual
|
|
8
|
+
type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual;
|
|
9
9
|
|
|
10
|
-
export const kind: string
|
|
10
|
+
export const kind: string;
|
|
11
11
|
|
|
12
12
|
// @ts-ignore
|
|
13
|
-
export type Agent = SelectType<manual.Agent, auto.Agent
|
|
13
|
+
export type Agent = SelectType<manual.Agent, auto.Agent>;
|
|
14
14
|
|
|
15
15
|
// @ts-ignore
|
|
16
|
-
export const fetch: SelectType<typeof manual.fetch, typeof auto.fetch
|
|
16
|
+
export const fetch: SelectType<typeof manual.fetch, typeof auto.fetch>;
|
|
17
17
|
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
export type Request = SelectType<manual.Request, auto.Request
|
|
19
|
+
export type Request = SelectType<manual.Request, auto.Request>;
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
export type RequestInfo = SelectType<manual.RequestInfo, auto.RequestInfo
|
|
21
|
+
export type RequestInfo = SelectType<manual.RequestInfo, auto.RequestInfo>;
|
|
22
22
|
// @ts-ignore
|
|
23
|
-
export type RequestInit = SelectType<manual.RequestInit, auto.RequestInit
|
|
23
|
+
export type RequestInit = SelectType<manual.RequestInit, auto.RequestInit>;
|
|
24
24
|
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
export type Response = SelectType<manual.Response, auto.Response
|
|
26
|
+
export type Response = SelectType<manual.Response, auto.Response>;
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
export type ResponseInit = SelectType<manual.ResponseInit, auto.ResponseInit
|
|
28
|
+
export type ResponseInit = SelectType<manual.ResponseInit, auto.ResponseInit>;
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
export type ResponseType = SelectType<manual.ResponseType, auto.ResponseType
|
|
30
|
+
export type ResponseType = SelectType<manual.ResponseType, auto.ResponseType>;
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
export type BodyInit = SelectType<manual.BodyInit, auto.BodyInit
|
|
32
|
+
export type BodyInit = SelectType<manual.BodyInit, auto.BodyInit>;
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
export type Headers = SelectType<manual.Headers, auto.Headers
|
|
34
|
+
export type Headers = SelectType<manual.Headers, auto.Headers>;
|
|
35
35
|
// @ts-ignore
|
|
36
|
-
export const Headers: SelectType<typeof manual.Headers, typeof auto.Headers
|
|
36
|
+
export const Headers: SelectType<typeof manual.Headers, typeof auto.Headers>;
|
|
37
37
|
// @ts-ignore
|
|
38
|
-
export type HeadersInit = SelectType<manual.HeadersInit, auto.HeadersInit
|
|
38
|
+
export type HeadersInit = SelectType<manual.HeadersInit, auto.HeadersInit>;
|
|
39
39
|
|
|
40
40
|
// @ts-ignore
|
|
41
|
-
export type BlobPropertyBag = SelectType<manual.BlobPropertyBag, auto.BlobPropertyBag
|
|
41
|
+
export type BlobPropertyBag = SelectType<manual.BlobPropertyBag, auto.BlobPropertyBag>;
|
|
42
42
|
// @ts-ignore
|
|
43
|
-
export type FilePropertyBag = SelectType<manual.FilePropertyBag, auto.FilePropertyBag
|
|
43
|
+
export type FilePropertyBag = SelectType<manual.FilePropertyBag, auto.FilePropertyBag>;
|
|
44
44
|
// @ts-ignore
|
|
45
|
-
export type FileFromPathOptions = SelectType<manual.FileFromPathOptions, auto.FileFromPathOptions
|
|
45
|
+
export type FileFromPathOptions = SelectType<manual.FileFromPathOptions, auto.FileFromPathOptions>;
|
|
46
46
|
// @ts-ignore
|
|
47
|
-
export type FormData = SelectType<manual.FormData, auto.FormData
|
|
47
|
+
export type FormData = SelectType<manual.FormData, auto.FormData>;
|
|
48
48
|
// @ts-ignore
|
|
49
|
-
export const FormData: SelectType<typeof manual.FormData, typeof auto.FormData
|
|
49
|
+
export const FormData: SelectType<typeof manual.FormData, typeof auto.FormData>;
|
|
50
50
|
// @ts-ignore
|
|
51
|
-
export type File = SelectType<manual.File, auto.File
|
|
51
|
+
export type File = SelectType<manual.File, auto.File>;
|
|
52
52
|
// @ts-ignore
|
|
53
|
-
export const File: SelectType<typeof manual.File, typeof auto.File
|
|
53
|
+
export const File: SelectType<typeof manual.File, typeof auto.File>;
|
|
54
54
|
// @ts-ignore
|
|
55
|
-
export type Blob = SelectType<manual.Blob, auto.Blob
|
|
55
|
+
export type Blob = SelectType<manual.Blob, auto.Blob>;
|
|
56
56
|
// @ts-ignore
|
|
57
|
-
export const Blob: SelectType<typeof manual.Blob, typeof auto.Blob
|
|
57
|
+
export const Blob: SelectType<typeof manual.Blob, typeof auto.Blob>;
|
|
58
58
|
|
|
59
59
|
// @ts-ignore
|
|
60
|
-
export type Readable = SelectType<manual.Readable, auto.Readable
|
|
60
|
+
export type Readable = SelectType<manual.Readable, auto.Readable>;
|
|
61
61
|
// @ts-ignore
|
|
62
|
-
export type FsReadStream = SelectType<manual.FsReadStream, auto.FsReadStream
|
|
62
|
+
export type FsReadStream = SelectType<manual.FsReadStream, auto.FsReadStream>;
|
|
63
63
|
// @ts-ignore
|
|
64
|
-
export type ReadableStream = SelectType<manual.ReadableStream, auto.ReadableStream
|
|
64
|
+
export type ReadableStream = SelectType<manual.ReadableStream, auto.ReadableStream>;
|
|
65
65
|
// @ts-ignore
|
|
66
|
-
export const ReadableStream: SelectType<typeof manual.ReadableStream, typeof auto.ReadableStream
|
|
66
|
+
export const ReadableStream: SelectType<typeof manual.ReadableStream, typeof auto.ReadableStream>;
|
|
67
67
|
|
|
68
68
|
export function getMultipartRequestOptions<T = Record<string, unknown>>(
|
|
69
69
|
form: FormData,
|
|
70
70
|
opts: RequestOptions<T>,
|
|
71
|
-
): Promise<RequestOptions<T
|
|
71
|
+
): Promise<RequestOptions<T>>;
|
|
72
72
|
|
|
73
|
-
export function getDefaultAgent(url: string): any
|
|
73
|
+
export function getDefaultAgent(url: string): any;
|
|
74
74
|
|
|
75
75
|
// @ts-ignore
|
|
76
|
-
export type FileFromPathOptions = SelectType<manual.FileFromPathOptions, auto.FileFromPathOptions
|
|
76
|
+
export type FileFromPathOptions = SelectType<manual.FileFromPathOptions, auto.FileFromPathOptions>;
|
|
77
77
|
|
|
78
|
-
export function fileFromPath(path: string, options?: FileFromPathOptions): Promise<File
|
|
79
|
-
export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise<File
|
|
78
|
+
export function fileFromPath(path: string, options?: FileFromPathOptions): Promise<File>;
|
|
79
|
+
export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
|
|
80
80
|
|
|
81
|
-
export function isFsReadStream(value: any): value is FsReadStream
|
|
81
|
+
export function isFsReadStream(value: any): value is FsReadStream;
|
package/_shims/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
const shims = require('./registry')
|
|
5
|
-
const auto = require('@lorikeetai/node-sdk/_shims/auto/runtime')
|
|
6
|
-
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true })
|
|
4
|
+
const shims = require('./registry');
|
|
5
|
+
const auto = require('@lorikeetai/node-sdk/_shims/auto/runtime');
|
|
6
|
+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
7
7
|
for (const property of Object.keys(shims)) {
|
|
8
8
|
Object.defineProperty(exports, property, {
|
|
9
9
|
get() {
|
|
10
|
-
return shims[property]
|
|
10
|
+
return shims[property];
|
|
11
11
|
},
|
|
12
|
-
})
|
|
12
|
+
});
|
|
13
13
|
}
|
package/_shims/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import * as shims from './registry.mjs'
|
|
5
|
-
import * as auto from '@lorikeetai/node-sdk/_shims/auto/runtime'
|
|
6
|
-
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true })
|
|
7
|
-
export * from './registry.mjs'
|
|
4
|
+
import * as shims from './registry.mjs';
|
|
5
|
+
import * as auto from '@lorikeetai/node-sdk/_shims/auto/runtime';
|
|
6
|
+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
7
|
+
export * from './registry.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"node-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AA6CxC,wBAAgB,UAAU,IAAI,KAAK,CAqBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-runtime.js","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,gCAqBC;AAhFD;;GAEG;AACH,+
|
|
1
|
+
{"version":3,"file":"node-runtime.js","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,gCAqBC;AAhFD;;GAEG;AACH,+CAAiC;AACjC,kDAAoC;AAEpC,oEAA4C;AAC5C,uDAA8E;AAC9E,qCAAqD;AAErD,yDAAoD;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by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import * as nf from 'node-fetch'
|
|
5
|
-
import * as fd from 'formdata-node'
|
|
4
|
+
import * as nf from 'node-fetch';
|
|
5
|
+
import * as fd from 'formdata-node';
|
|
6
6
|
|
|
7
|
-
export { type Agent } from 'node:http'
|
|
8
|
-
export { type Readable } from 'node:stream'
|
|
9
|
-
export { type ReadStream as FsReadStream } from 'node:fs'
|
|
10
|
-
export { ReadableStream } from 'node:stream/web'
|
|
7
|
+
export { type Agent } from 'node:http';
|
|
8
|
+
export { type Readable } from 'node:stream';
|
|
9
|
+
export { type ReadStream as FsReadStream } from 'node:fs';
|
|
10
|
+
export { ReadableStream } from 'node:stream/web';
|
|
11
11
|
|
|
12
|
-
export const fetch: typeof nf.default
|
|
12
|
+
export const fetch: typeof nf.default;
|
|
13
13
|
|
|
14
|
-
export type Request = nf.Request
|
|
15
|
-
export type RequestInfo = nf.RequestInfo
|
|
16
|
-
export type RequestInit = nf.RequestInit
|
|
14
|
+
export type Request = nf.Request;
|
|
15
|
+
export type RequestInfo = nf.RequestInfo;
|
|
16
|
+
export type RequestInit = nf.RequestInit;
|
|
17
17
|
|
|
18
|
-
export type Response = nf.Response
|
|
19
|
-
export type ResponseInit = nf.ResponseInit
|
|
20
|
-
export type ResponseType = nf.ResponseType
|
|
21
|
-
export type BodyInit = nf.BodyInit
|
|
22
|
-
export type Headers = nf.Headers
|
|
23
|
-
export type HeadersInit = nf.HeadersInit
|
|
18
|
+
export type Response = nf.Response;
|
|
19
|
+
export type ResponseInit = nf.ResponseInit;
|
|
20
|
+
export type ResponseType = nf.ResponseType;
|
|
21
|
+
export type BodyInit = nf.BodyInit;
|
|
22
|
+
export type Headers = nf.Headers;
|
|
23
|
+
export type HeadersInit = nf.HeadersInit;
|
|
24
24
|
|
|
25
|
-
type EndingType = 'native' | 'transparent'
|
|
25
|
+
type EndingType = 'native' | 'transparent';
|
|
26
26
|
export interface BlobPropertyBag {
|
|
27
|
-
endings?: EndingType
|
|
28
|
-
type?: string
|
|
27
|
+
endings?: EndingType;
|
|
28
|
+
type?: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface FilePropertyBag extends BlobPropertyBag {
|
|
32
|
-
lastModified?: number
|
|
32
|
+
lastModified?: number;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'
|
|
35
|
+
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
|
36
36
|
|
|
37
|
-
export type FormData = fd.FormData
|
|
38
|
-
export const FormData: typeof fd.FormData
|
|
39
|
-
export type File = fd.File
|
|
40
|
-
export const File: typeof fd.File
|
|
41
|
-
export type Blob = fd.Blob
|
|
42
|
-
export const Blob: typeof fd.Blob
|
|
37
|
+
export type FormData = fd.FormData;
|
|
38
|
+
export const FormData: typeof fd.FormData;
|
|
39
|
+
export type File = fd.File;
|
|
40
|
+
export const File: typeof fd.File;
|
|
41
|
+
export type Blob = fd.Blob;
|
|
42
|
+
export const Blob: typeof fd.Blob;
|
package/_shims/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/_shims/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/_shims/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,I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,CAAC;AACvD,eAAO,IAAI,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAqB,CAAC;AACvD,eAAO,IAAI,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAqB,CAAC;AAC3E,eAAO,IAAI,0BAA0B,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,SAAqB,CAAC;AACnG,eAAO,IAAI,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,SAAqB,CAAC;AAC7E,eAAO,IAAI,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAqB,CAAC;AACvE,eAAO,IAAI,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAqB,CAAC;AAE3E,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,GAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAoB,QAyBlF"}
|
package/_shims/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/_shims/registry.ts"],"names":[],"mappings":";;;AAyCA,4BAyBC;AAxCU,QAAA,IAAI,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/_shims/registry.ts"],"names":[],"mappings":";;;AAyCA,4BAyBC;AAxCU,QAAA,IAAI,GAAG,KAAK,CAAC;AACb,QAAA,IAAI,GAA8B,SAAS,CAAC;AAC5C,QAAA,KAAK,GAA+B,SAAS,CAAC;AAC9C,QAAA,OAAO,GAAiC,SAAS,CAAC;AAClD,QAAA,QAAQ,GAAkC,SAAS,CAAC;AACpD,QAAA,OAAO,GAAiC,SAAS,CAAC;AAClD,QAAA,QAAQ,GAAkC,SAAS,CAAC;AACpD,QAAA,IAAI,GAA8B,SAAS,CAAC;AAC5C,QAAA,IAAI,GAA8B,SAAS,CAAC;AAC5C,QAAA,cAAc,GAAwC,SAAS,CAAC;AAChE,QAAA,0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KAAK,CAAC,KAAK,CAAC;IACpB,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACxB,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC1B,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACxB,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC1B,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAClB,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAClB,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IACtC,0BAA0B,GAAG,KAAK,CAAC,0BAA0B,CAAC;IAC9D,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;IACxC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAClC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;AACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/web-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"web-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/web-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,wBAAgB,UAAU,CAAC,EAAE,gBAAgB,EAAE,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,KAAK,CA+F3F"}
|