@tamagui/assert 3.0.0-beta.924.1 → 3.0.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.
@@ -23,15 +23,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var assertions_exports = {};
24
24
  __export(assertions_exports, { assertIsError: () => assertIsError });
25
25
  module.exports = __toCommonJS(assertions_exports);
26
- function _instanceof(left, right) {
27
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
28
- return !!right[Symbol.hasInstance](left);
29
- } else {
30
- return left instanceof right;
31
- }
32
- }
33
26
  function assertIsError(error) {
34
- if (!_instanceof(error, Error)) {
27
+ if (!(error instanceof Error)) {
35
28
  throw error;
36
29
  }
37
30
  }
@@ -23,15 +23,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var assertions_exports = {};
24
24
  __export(assertions_exports, { assertIsError: () => assertIsError });
25
25
  module.exports = __toCommonJS(assertions_exports);
26
- function _instanceof(left, right) {
27
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
28
- return !!right[Symbol.hasInstance](left);
29
- } else {
30
- return left instanceof right;
31
- }
32
- }
33
26
  function assertIsError(error) {
34
- if (!_instanceof(error, Error)) {
27
+ if (!(error instanceof Error)) {
35
28
  throw error;
36
29
  }
37
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"assertions.native.js","names":[],"sources":["cjs/assertions.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar assertions_exports = {};\n__export(assertions_exports, {\n assertIsError: () => assertIsError\n});\nmodule.exports = __toCommonJS(assertions_exports);\nfunction _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nfunction assertIsError(error) {\n if (!_instanceof(error, Error)) {\n throw error;\n }\n}\n//# sourceMappingURL=assertions.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB,EAC3B,qBAAqB,cACvB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,SAAS,YAAY,MAAM,OAAO;CAChC,IAAI,SAAS,QAAQ,OAAO,WAAW,eAAe,MAAM,OAAO,cAAc;EAC/E,OAAO,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,IAAI;CACzC,OAAO;EACL,OAAO,gBAAgB;CACzB;AACF;AACA,SAAS,cAAc,OAAO;CAC5B,IAAI,CAAC,YAAY,OAAO,KAAK,GAAG;EAC9B,MAAM;CACR;AACF"}
1
+ {"version":3,"file":"assertions.native.js","names":[],"sources":["cjs/assertions.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar assertions_exports = {};\n__export(assertions_exports, {\n assertIsError: () => assertIsError\n});\nmodule.exports = __toCommonJS(assertions_exports);\nfunction assertIsError(error) {\n if (!(error instanceof Error)) {\n throw error;\n }\n}\n//# sourceMappingURL=assertions.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB,EAC3B,qBAAqB,cACvB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,SAAS,cAAc,OAAO;CAC5B,IAAI,EAAE,iBAAiB,QAAQ;EAC7B,MAAM;CACR;AACF"}
@@ -1,12 +1,5 @@
1
- function _instanceof(left, right) {
2
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3
- return !!right[Symbol.hasInstance](left);
4
- } else {
5
- return left instanceof right;
6
- }
7
- }
8
1
  function assertIsError(error) {
9
- if (!_instanceof(error, Error)) {
2
+ if (!(error instanceof Error)) {
10
3
  throw error;
11
4
  }
12
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"assertions.native.js","names":[],"sources":["esm/assertions.native.js"],"sourcesContent":["function _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nfunction assertIsError(error) {\n if (!_instanceof(error, Error)) {\n throw error;\n }\n}\nexport {\n assertIsError\n};\n//# sourceMappingURL=assertions.js.map\n"],"mappings":";AAAA,SAAS,YAAY,MAAM,OAAO;CAChC,IAAI,SAAS,QAAQ,OAAO,WAAW,eAAe,MAAM,OAAO,cAAc;EAC/E,OAAO,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,IAAI;CACzC,OAAO;EACL,OAAO,gBAAgB;CACzB;AACF;AACA,SAAS,cAAc,OAAO;CAC5B,IAAI,CAAC,YAAY,OAAO,KAAK,GAAG;EAC9B,MAAM;CACR;AACF"}
1
+ {"version":3,"file":"assertions.native.js","names":[],"sources":["esm/assertions.native.js"],"sourcesContent":["function assertIsError(error) {\n if (!(error instanceof Error)) {\n throw error;\n }\n}\nexport {\n assertIsError\n};\n//# sourceMappingURL=assertions.js.map\n"],"mappings":";AAAA,SAAS,cAAc,OAAO;CAC5B,IAAI,EAAE,iBAAiB,QAAQ;EAC7B,MAAM;CACR;AACF"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/assert",
3
- "version": "3.0.0-beta.924.1",
3
+ "version": "3.0.1",
4
+ "license": "MIT",
4
5
  "source": "src/index.ts",
5
6
  "files": [
6
7
  "src",
@@ -34,11 +35,12 @@
34
35
  "clean:build": "tamagui-build clean:build"
35
36
  },
36
37
  "devDependencies": {
37
- "@tamagui/build": "3.0.0-beta.924.1"
38
+ "@tamagui/build": "3.0.1"
38
39
  },
39
40
  "repository": {
40
41
  "type": "git",
41
42
  "url": "git+https://github.com/tamagui/tamagui.git",
42
43
  "directory": "code/core/assert"
43
- }
44
+ },
45
+ "releaseSourceCommit": "c156b7cc55e5a6cc5883ebc8189720850ac32dbd"
44
46
  }