@turnkey/http 2.5.0 → 2.6.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +45 -0
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +75 -0
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +75 -0
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +2336 -348
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +72 -0
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +67 -1
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +126 -3
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  16. package/dist/base.js +1 -4
  17. package/dist/base.js.map +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +2 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +1 -0
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/universal.d.ts +1 -1
  25. package/dist/universal.d.ts.map +1 -1
  26. package/dist/universal.js +4 -7
  27. package/dist/universal.js.map +1 -1
  28. package/dist/universal.mjs +2 -7
  29. package/dist/universal.mjs.map +1 -1
  30. package/dist/version.d.ts +2 -0
  31. package/dist/version.d.ts.map +1 -0
  32. package/dist/version.js +6 -0
  33. package/dist/version.js.map +1 -0
  34. package/dist/version.mjs +4 -0
  35. package/dist/version.mjs.map +1 -0
  36. package/package.json +4 -3
package/dist/universal.js CHANGED
@@ -3,11 +3,8 @@
3
3
  var crossFetch = require('cross-fetch');
4
4
 
5
5
  /// <reference lib="dom" />
6
- exports.fetch = void 0;
7
- if (typeof globalThis?.fetch !== "undefined") {
8
- exports.fetch = globalThis.fetch;
9
- }
10
- else {
11
- exports.fetch = crossFetch.fetch;
12
- }
6
+ // This is useful for mocking fetch in tests.
7
+ const fetch = crossFetch.fetch;
8
+
9
+ exports.fetch = fetch;
13
10
  //# sourceMappingURL=universal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"universal.js","sources":["../src/universal.ts"],"sourcesContent":[null],"names":["fetch","xFetch"],"mappings":";;;;AAAA;AAEIA,uBAA+B;AAEnC,IAAI,OAAO,UAAU,EAAE,KAAK,KAAK,WAAW,EAAE;AAC5C,IAAAA,aAAK,GAAG,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAA;AAAM,KAAA;IACLA,aAAK,GAAGC,gBAAM,CAAC;AAChB;;"}
1
+ {"version":3,"file":"universal.js","sources":["../src/universal.ts"],"sourcesContent":[null],"names":["xFetch"],"mappings":";;;;AAAA;AAGA;AACM,MAAA,KAAK,GAAGA;;;;"}
@@ -1,13 +1,8 @@
1
1
  import { fetch as fetch$1 } from 'cross-fetch';
2
2
 
3
3
  /// <reference lib="dom" />
4
- let fetch;
5
- if (typeof globalThis?.fetch !== "undefined") {
6
- fetch = globalThis.fetch;
7
- }
8
- else {
9
- fetch = fetch$1;
10
- }
4
+ // This is useful for mocking fetch in tests.
5
+ const fetch = fetch$1;
11
6
 
12
7
  export { fetch };
13
8
  //# sourceMappingURL=universal.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"universal.mjs","sources":["../src/universal.ts"],"sourcesContent":[null],"names":["xFetch"],"mappings":";;AAAA;AAEA,IAAI,MAA+B;AAEnC,IAAI,OAAO,UAAU,EAAE,KAAK,KAAK,WAAW,EAAE;AAC5C,IAAA,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAA;AAAM,KAAA;IACL,KAAK,GAAGA,OAAM,CAAC;AAChB;;;;"}
1
+ {"version":3,"file":"universal.mjs","sources":["../src/universal.ts"],"sourcesContent":[null],"names":["xFetch"],"mappings":";;AAAA;AAGA;AACM,MAAA,KAAK,GAAGA;;;;"}
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "@turnkey/http@2.6.0";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,wBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ const VERSION = "@turnkey/http@2.6.0";
4
+
5
+ exports.VERSION = VERSION;
6
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAO,MAAM,OAAO,GAAG;;;;"}
@@ -0,0 +1,4 @@
1
+ const VERSION = "@turnkey/http@2.6.0";
2
+
3
+ export { VERSION };
4
+ //# sourceMappingURL=version.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.mjs","sources":["../src/version.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turnkey/http",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -39,13 +39,14 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "cross-fetch": "^3.1.5",
42
- "@turnkey/api-key-stamper": "0.3.0",
43
- "@turnkey/webauthn-stamper": "0.4.2"
42
+ "@turnkey/api-key-stamper": "0.3.1",
43
+ "@turnkey/webauthn-stamper": "0.4.3"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=16.0.0"
47
47
  },
48
48
  "scripts": {
49
+ "preinstall": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').name + '@' + require('./package.json').version) + ';'\" > src/version.ts",
49
50
  "build": "rollup -c",
50
51
  "clean": "rimraf ./dist ./.cache",
51
52
  "test": "jest",