@tamagui/assert 1.110.5 → 1.111.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.
@@ -18,11 +18,8 @@ __export(assertions_exports, {
18
18
  assertIsError: () => assertIsError
19
19
  });
20
20
  module.exports = __toCommonJS(assertions_exports);
21
- function _instanceof(left, right) {
22
- return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
23
- }
24
21
  function assertIsError(error) {
25
- if (!_instanceof(error, Error))
22
+ if (!(error instanceof Error))
26
23
  throw error;
27
24
  }
28
25
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/core/assert/src/assertions.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA,cAAcC,OAAc;AAC1C,MAAI,CAAO,YAALA,OAAiBC,KAAAA;AACrB,UAAMD;AAEV;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,SAASA,cAAcC,OAAc;AAC1C,MAAI,EAAEA,iBAAiBC;AACrB,UAAMD;AAEV;",
5
5
  "names": ["assertIsError", "error", "Error"]
6
6
  }
@@ -1,8 +1,5 @@
1
- function _instanceof(left, right) {
2
- return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
3
- }
4
1
  function assertIsError(error) {
5
- if (!_instanceof(error, Error))
2
+ if (!(error instanceof Error))
6
3
  throw error;
7
4
  }
8
5
  export {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/core/assert/src/assertions.ts"],
4
- "mappings": ";;;AAAO,SAASA,cAAcC,OAAc;AAC1C,MAAI,CAAO,YAALA,OAAiBC,KAAAA;AACrB,UAAMD;AAEV;",
4
+ "mappings": "AAAO,SAASA,cAAcC,OAAc;AAC1C,MAAI,EAAEA,iBAAiBC;AACrB,UAAMD;AAEV;",
5
5
  "names": ["assertIsError", "error", "Error"]
6
6
  }
@@ -0,0 +1,5 @@
1
+ function assertIsError(error) {
2
+ if (!(error instanceof Error)) throw error;
3
+ }
4
+ export { assertIsError };
5
+ //# sourceMappingURL=assertions.native.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["assertIsError","error","Error"],"sources":["../../src/assertions.ts"],"sourcesContent":[null],"mappings":"AAAO,SAASA,cAAcC,KAAA,EAAwC;EACpE,IAAI,EAAEA,KAAA,YAAiBC,KAAA,GACrB,MAAMD,KAAA;AAEV","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./assertions.mjs";
2
+ //# sourceMappingURL=index.native.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/assert",
3
- "version": "1.110.5",
3
+ "version": "1.111.1",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -19,7 +19,7 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "devDependencies": {
22
- "@tamagui/build": "1.110.5"
22
+ "@tamagui/build": "1.111.1"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"