@coderule/clients 1.0.0 → 1.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/dist/index.cjs +953 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +148 -0
- package/dist/index.d.ts +148 -5
- package/dist/index.js +924 -14
- package/dist/index.js.map +1 -1
- package/package.json +12 -11
- package/dist/clients/auth-client.d.ts +0 -26
- package/dist/clients/auth-client.d.ts.map +0 -1
- package/dist/clients/auth-client.js +0 -129
- package/dist/clients/auth-client.js.map +0 -1
- package/dist/clients/retrieval-client.d.ts +0 -49
- package/dist/clients/retrieval-client.d.ts.map +0 -1
- package/dist/clients/retrieval-client.js +0 -274
- package/dist/clients/retrieval-client.js.map +0 -1
- package/dist/clients/sync-client.d.ts +0 -46
- package/dist/clients/sync-client.d.ts.map +0 -1
- package/dist/clients/sync-client.js +0 -198
- package/dist/clients/sync-client.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.mjs +0 -5
- package/dist/polyfills/fetch-native.d.ts +0 -10
- package/dist/polyfills/fetch-native.d.ts.map +0 -1
- package/dist/polyfills/fetch-native.js +0 -10
- package/dist/polyfills/fetch-native.js.map +0 -1
- package/dist/polyfills/fetch-polyfill.d.ts +0 -7
- package/dist/polyfills/fetch-polyfill.d.ts.map +0 -1
- package/dist/polyfills/fetch-polyfill.js +0 -38
- package/dist/polyfills/fetch-polyfill.js.map +0 -1
- package/dist/utils/fetch-wrapper.d.ts +0 -11
- package/dist/utils/fetch-wrapper.d.ts.map +0 -1
- package/dist/utils/fetch-wrapper.js +0 -34
- package/dist/utils/fetch-wrapper.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const fetch: typeof globalThis.fetch;
|
|
2
|
-
export declare const Headers: typeof import("undici-types").Headers;
|
|
3
|
-
export declare const Request: typeof import("undici-types").Request;
|
|
4
|
-
export declare const Response: typeof import("undici-types").Response;
|
|
5
|
-
export declare const FormData: typeof import("undici-types").FormData;
|
|
6
|
-
export declare const AbortController: {
|
|
7
|
-
new (): AbortController;
|
|
8
|
-
prototype: AbortController;
|
|
9
|
-
};
|
|
10
|
-
export default fetch;
|
|
11
|
-
//# sourceMappingURL=fetch-wrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-wrapper.d.ts","sourceRoot":"","sources":["../../src/utils/fetch-wrapper.ts"],"names":[],"mappings":"AA4CA,eAAO,MAAM,KAAK,yBAAoB,CAAC;AACvC,eAAO,MAAM,OAAO,uCAAsB,CAAC;AAC3C,eAAO,MAAM,OAAO,uCAAsB,CAAC;AAC3C,eAAO,MAAM,QAAQ,wCAAuB,CAAC;AAC7C,eAAO,MAAM,QAAQ,wCAAuB,CAAC;AAC7C,eAAO,MAAM,eAAe;;;CAA8B,CAAC;AAG3D,eAAe,KAAK,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbortController = exports.FormData = exports.Response = exports.Request = exports.Headers = exports.fetch = void 0;
|
|
4
|
-
const hasNativeFetch = typeof globalThis.fetch !== 'undefined';
|
|
5
|
-
let fetchModule;
|
|
6
|
-
if (hasNativeFetch) {
|
|
7
|
-
fetchModule = {
|
|
8
|
-
fetch: globalThis.fetch,
|
|
9
|
-
Headers: globalThis.Headers,
|
|
10
|
-
Request: globalThis.Request,
|
|
11
|
-
Response: globalThis.Response,
|
|
12
|
-
FormData: globalThis.FormData,
|
|
13
|
-
AbortController: globalThis.AbortController,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
try {
|
|
18
|
-
fetchModule = require('../polyfills/fetch-polyfill');
|
|
19
|
-
}
|
|
20
|
-
catch {
|
|
21
|
-
throw new Error(`This library requires Node.js 18+ or the node-fetch package.\n` +
|
|
22
|
-
`Please either:\n` +
|
|
23
|
-
`1. Upgrade to Node.js 18 or later, or\n` +
|
|
24
|
-
`2. Install node-fetch: npm install node-fetch@2`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.fetch = fetchModule.fetch;
|
|
28
|
-
exports.Headers = fetchModule.Headers;
|
|
29
|
-
exports.Request = fetchModule.Request;
|
|
30
|
-
exports.Response = fetchModule.Response;
|
|
31
|
-
exports.FormData = fetchModule.FormData;
|
|
32
|
-
exports.AbortController = fetchModule.AbortController;
|
|
33
|
-
exports.default = exports.fetch;
|
|
34
|
-
//# sourceMappingURL=fetch-wrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-wrapper.js","sourceRoot":"","sources":["../../src/utils/fetch-wrapper.ts"],"names":[],"mappings":";;;AAKA,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC,KAAK,KAAK,WAAW,CAAC;AAW/D,IAAI,WAAwB,CAAC;AAE7B,IAAI,cAAc,EAAE,CAAC;IAEnB,WAAW,GAAG;QACZ,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,eAAe,EAAE,UAAU,CAAC,eAAe;KAC5C,CAAC;AACJ,CAAC;KAAM,CAAC;IAEN,IAAI,CAAC;QAEH,WAAW,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CACb,gEAAgE;YAC9D,kBAAkB;YAClB,yCAAyC;YACzC,iDAAiD,CACpD,CAAC;IACJ,CAAC;AACH,CAAC;AAGY,QAAA,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;AAC1B,QAAA,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;AAC9B,QAAA,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;AAC9B,QAAA,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;AAChC,QAAA,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;AAChC,QAAA,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC;AAG3D,kBAAe,aAAK,CAAC"}
|