@tamagui/use-force-update 1.135.4 → 1.135.5

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.
@@ -35,7 +35,7 @@ __export(index_exports, {
35
35
  useForceUpdate: () => useForceUpdate
36
36
  });
37
37
  module.exports = __toCommonJS(index_exports);
38
- var import_react = __toESM(require("react"));
38
+ var import_react = __toESM(require("react"), 1);
39
39
  const isServerSide = typeof window > "u",
40
40
  idFn = () => {};
41
41
  function useForceUpdate() {
package/dist/cjs/index.js CHANGED
@@ -26,7 +26,7 @@ __export(index_exports, {
26
26
  useForceUpdate: () => useForceUpdate
27
27
  });
28
28
  module.exports = __toCommonJS(index_exports);
29
- var import_react = __toESM(require("react"));
29
+ var import_react = __toESM(require("react"), 1);
30
30
  const isServerSide = typeof window > "u", idFn = () => {
31
31
  };
32
32
  function useForceUpdate() {
@@ -1,42 +1,48 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var index_exports = {};
25
35
  __export(index_exports, {
26
36
  isServerSide: () => isServerSide,
27
37
  useForceUpdate: () => useForceUpdate
28
38
  });
29
39
  module.exports = __toCommonJS(index_exports);
30
- var import_react = __toESM(require("react")), isServerSide = !1, idFn = function() {
31
- };
40
+ var import_react = __toESM(require("react"), 1),
41
+ isServerSide = !1,
42
+ idFn = function () {};
32
43
  function useForceUpdate() {
33
- return isServerSide ? idFn : import_react.default.useReducer(function(x) {
44
+ return isServerSide ? idFn : import_react.default.useReducer(function (x) {
34
45
  return Math.random();
35
46
  }, 0)[1];
36
47
  }
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- isServerSide,
40
- useForceUpdate
41
- });
42
- //# sourceMappingURL=index.js.map
48
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BACP,eAAe,IACtB,OAAO,WAAW;AAAC;AAChB,SAAS,iBAAiB;AAC7B,SAAO,eAAe,OAAO,aAAAA,QAAM,WAAW,SAAS,GAAG;AACtD,WAAO,KAAK,OAAO;AAAA,EACvB,GAAG,CAAC,EAAE,CAAC;AACX;",
5
- "names": ["React"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","isServerSide","useForceUpdate","module","exports","import_react","__toESM","require","idFn","default","useReducer","x","Math","random"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAkB,CAAAK,aAAA;AAEX,IAAAM,YAAM,GAAAC,OAC6B,CAAAC,OAAO,QAE3C;EAAON,YAAM;EAAAO,IAAA,YAAAA,CAAA,GAAC;AAEb,SAASN,eAAA,EAA6B;EAC3C,OAAOD,YAAA,GACHO,IAAA,GACCH,YAAA,CAAAI,OAAA,CAAMC,UAAA,CAAW,UAAOC,CAAA,EAAK;IACpC,OAAAC,IAAA,CAAAC,MAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/use-force-update",
3
- "version": "1.135.4",
3
+ "version": "1.135.5",
4
+ "type": "module",
4
5
  "types": "./types/index.d.ts",
5
6
  "main": "dist/cjs",
6
7
  "module": "dist/esm",
@@ -31,7 +32,7 @@
31
32
  }
32
33
  },
33
34
  "devDependencies": {
34
- "@tamagui/build": "1.135.4",
35
+ "@tamagui/build": "1.135.5",
35
36
  "react": "*"
36
37
  },
37
38
  "publishConfig": {