@tamagui/start-transition 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.
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
16
23
|
var index_exports = {};
|
|
17
24
|
__export(index_exports, {
|
|
18
25
|
startTransition: () => startTransition
|
|
19
26
|
});
|
|
20
27
|
module.exports = __toCommonJS(index_exports);
|
|
21
|
-
var import_react = require("react"),
|
|
22
|
-
callback
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
startTransition
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
28
|
+
var import_react = require("react"),
|
|
29
|
+
startTransition = function (callback) {
|
|
30
|
+
callback();
|
|
31
|
+
};
|
|
32
|
+
//# 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,mBAAwD,kBAC7C,kBAAkB,SAAS,UAAU;AAGxC,WAAS;AAKjB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","startTransition","module","exports","import_react","require","callback"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAwD,CAAAK,aAAA;AAEjD,IAAAK,YAAM,GAAAC,OAAmB;EAAAJ,eAA6C,YAAAA,CAAAK,QAAA;IAMzEA,QAAA;EAEJ","ignoreList":[]}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
var import_index = require("./index.native.js");
|
|
4
|
+
describe("startTransition", function () {
|
|
5
|
+
it("should call the callback directly if TAMAGUI_TARGET is not web", function () {
|
|
5
6
|
process.env.TAMAGUI_TARGET = "native";
|
|
6
7
|
var callback = jest.fn();
|
|
7
8
|
(0, import_index.startTransition)(callback), expect(callback).toHaveBeenCalled();
|
|
8
|
-
}), it("should proxy to react.startTransition if TAMAGUI_TARGET is web", function() {
|
|
9
|
+
}), it("should proxy to react.startTransition if TAMAGUI_TARGET is web", function () {
|
|
9
10
|
process.env.TAMAGUI_TARGET = "web";
|
|
10
11
|
var callback = jest.fn();
|
|
11
12
|
(0, import_index.startTransition)(callback), expect(callback).not.toHaveBeenCalled();
|
|
12
13
|
});
|
|
13
14
|
});
|
|
14
|
-
//# sourceMappingURL=index.test.js.map
|
|
15
|
+
//# sourceMappingURL=index.test.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.test.js"],
|
|
4
|
-
"mappings": ";AAAA,mBAAgC;AAChC,SAAS,mBAAmB,WAAW;AACnC,KAAG,kEAAkE,WAAW;AAC5E,YAAQ,IAAI,iBAAiB;AAC7B,QAAI,WAAW,KAAK,GAAG;AACvB,sCAAgB,QAAQ,GACxB,OAAO,QAAQ,EAAE,iBAAiB;AAAA,EACtC,CAAC,GACD,GAAG,kEAAkE,WAAW;AAC5E,YAAQ,IAAI,iBAAiB;AAC7B,QAAI,WAAW,KAAK,GAAG;AACvB,sCAAgB,QAAQ,GAExB,OAAO,QAAQ,EAAE,IAAI,iBAAiB;AAAA,EAC1C,CAAC;AACL,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["import_index","require","describe","it","process","env","TAMAGUI_TARGET","callback","jest","fn","startTransition","expect","toHaveBeenCalled","not"],"sources":["../../src/index.test.js"],"sourcesContent":[null],"mappings":"AAAA;;AAEA,IAAAA,YAAS,GAAAC,OAAA,oBAAyB;AAChCC,QAAG;EACDC,EAAA,iEAA6B;IAC7BC,OAAM,CAAAC,GAAA,CAAAC,cAAmB;IACzB,IAAAC,QAAA,GAAAC,IAAA,CAAAC,EAAA;IAED,EAED,EAAAT,YAAG,CAAAU,eAAA,EAAAH,QAAA,GAAAI,MAAA,CAAAJ,QAAA,EAAAK,gBAAwE;EACzE,IAAAT,EAAA,iEAA6B;IAC7BC,OAAM,CAAAC,GAAA,CAAAC,cAAmB;IACzB,IAAAC,QAAA,GAAAC,IAAA,CAAAC,EAAA;IAGD,IAAAT,YAAA,CAAAU,eAAA,EAAAH,QAAA,GAAAI,MAAA,CAAAJ,QAAA,EAAAM,GAAA,CAAAD,gBAAA;EACF","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/start-transition",
|
|
3
|
-
"version": "1.135.
|
|
3
|
+
"version": "1.135.5",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"source": "src/index.ts",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"types": "./types/index.d.ts",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
}
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"@tamagui/build": "1.135.
|
|
29
|
+
"@tamagui/build": "1.135.5",
|
|
29
30
|
"react": "*"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|