@turnkey/http 2.4.0 → 2.4.1

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @turnkey/http
2
2
 
3
+ ## 2.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix universal files to stop using `require`. Use ES6 imports instead (#178)
8
+ - Updated dependencies [f87ced8]
9
+ - @turnkey/webauthn-stamper@0.4.1
10
+
3
11
  ## 2.4.0
4
12
 
5
13
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"universal.d.ts","sourceRoot":"","sources":["../src/universal.ts"],"names":[],"mappings":";AACA,QAAA,IAAI,KAAK,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;AAQnC,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"universal.d.ts","sourceRoot":"","sources":["../src/universal.ts"],"names":[],"mappings":";AAEA,QAAA,IAAI,KAAK,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;AAQnC,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/dist/universal.js CHANGED
@@ -1,11 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ var crossFetch = require('cross-fetch');
4
+
3
5
  /// <reference lib="dom" />
4
6
  exports.fetch = void 0;
5
7
  if (typeof globalThis?.fetch !== "undefined") {
6
8
  exports.fetch = globalThis.fetch;
7
9
  }
8
10
  else {
9
- exports.fetch = require("cross-fetch");
11
+ exports.fetch = crossFetch.fetch;
10
12
  }
11
13
  //# sourceMappingURL=universal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"universal.js","sources":["../src/universal.ts"],"sourcesContent":[null],"names":["fetch"],"mappings":";;AAAA;AACIA,uBAA+B;AAEnC,IAAI,OAAO,UAAU,EAAE,KAAK,KAAK,WAAW,EAAE;AAC5C,IAAAA,aAAK,GAAG,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAA;AAAM,KAAA;AACL,IAAAA,aAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAChC;;"}
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,10 +1,12 @@
1
+ import { fetch as fetch$1 } from 'cross-fetch';
2
+
1
3
  /// <reference lib="dom" />
2
4
  let fetch;
3
5
  if (typeof globalThis?.fetch !== "undefined") {
4
6
  fetch = globalThis.fetch;
5
7
  }
6
8
  else {
7
- fetch = require("cross-fetch");
9
+ fetch = fetch$1;
8
10
  }
9
11
 
10
12
  export { fetch };
@@ -1 +1 @@
1
- {"version":3,"file":"universal.mjs","sources":["../src/universal.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,IAAI,MAA+B;AAEnC,IAAI,OAAO,UAAU,EAAE,KAAK,KAAK,WAAW,EAAE;AAC5C,IAAA,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAA;AAAM,KAAA;AACL,IAAA,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAChC;;;;"}
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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turnkey/http",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "cross-fetch": "^3.1.5",
42
42
  "@turnkey/api-key-stamper": "0.3.0",
43
- "@turnkey/webauthn-stamper": "0.4.0"
43
+ "@turnkey/webauthn-stamper": "0.4.1"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=16.0.0"