@simplewebauthn/server 13.0.0-alpha1 → 13.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAEpD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;oBACV,MAAM;CACvB,CAAC"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAEpD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;oBACV,MAAM;CACvB,CAAC"}
@@ -1,4 +1,3 @@
1
- import { fetch as crossFetch } from 'cross-fetch';
2
1
  /**
3
2
  * A simple method for requesting data via standard `fetch`. Should work
4
3
  * across multiple runtimes.
@@ -11,5 +10,5 @@ export function fetch(url) {
11
10
  * @ignore Don't include this in docs output
12
11
  */
13
12
  export const _fetchInternals = {
14
- stubThis: (url) => crossFetch(url),
13
+ stubThis: (url) => globalThis.fetch(url),
15
14
  };
@@ -8,7 +8,7 @@ export declare class MissingWebCrypto extends Error {
8
8
  constructor();
9
9
  }
10
10
  export declare const _getWebCryptoInternals: {
11
- stubThisGlobalThisCrypto: () => globalThis.Crypto;
11
+ stubThisGlobalThisCrypto: () => import("crypto").webcrypto.Crypto;
12
12
  setCachedCrypto: (newCrypto: Crypto | undefined) => void;
13
13
  };
14
14
  //# sourceMappingURL=getWebCrypto.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplewebauthn/server",
3
- "version": "13.0.0-alpha1",
3
+ "version": "13.1.0",
4
4
  "description": "SimpleWebAuthn for Servers",
5
5
  "keywords": [
6
6
  "typescript",
@@ -55,8 +55,7 @@
55
55
  "@peculiar/asn1-ecc": "^2.3.8",
56
56
  "@peculiar/asn1-rsa": "^2.3.8",
57
57
  "@peculiar/asn1-schema": "^2.3.8",
58
- "@peculiar/asn1-x509": "^2.3.8",
59
- "cross-fetch": "^4.0.0"
58
+ "@peculiar/asn1-x509": "^2.3.8"
60
59
  },
61
60
  "devDependencies": {
62
61
  "@types/node": "^20.9.0"
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAEpD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;oBACV,MAAM;CACvB,CAAC"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAEpD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;oBACV,MAAM;CACvB,CAAC"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._fetchInternals = void 0;
4
4
  exports.fetch = fetch;
5
- const cross_fetch_1 = require("cross-fetch");
6
5
  /**
7
6
  * A simple method for requesting data via standard `fetch`. Should work
8
7
  * across multiple runtimes.
@@ -15,5 +14,5 @@ function fetch(url) {
15
14
  * @ignore Don't include this in docs output
16
15
  */
17
16
  exports._fetchInternals = {
18
- stubThis: (url) => (0, cross_fetch_1.fetch)(url),
17
+ stubThis: (url) => globalThis.fetch(url),
19
18
  };
@@ -8,7 +8,7 @@ export declare class MissingWebCrypto extends Error {
8
8
  constructor();
9
9
  }
10
10
  export declare const _getWebCryptoInternals: {
11
- stubThisGlobalThisCrypto: () => globalThis.Crypto;
11
+ stubThisGlobalThisCrypto: () => import("crypto").webcrypto.Crypto;
12
12
  setCachedCrypto: (newCrypto: Crypto | undefined) => void;
13
13
  };
14
14
  //# sourceMappingURL=getWebCrypto.d.ts.map