one 1.2.17 → 1.2.18
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/getDevServer.cjs +29 -0
- package/dist/cjs/getDevServer.js +24 -0
- package/dist/cjs/getDevServer.js.map +6 -0
- package/dist/cjs/getDevServer.native.js +40 -0
- package/dist/cjs/getDevServer.native.js.map +1 -0
- package/dist/cjs/getURL.native.js +8 -18
- package/dist/cjs/getURL.native.js.map +1 -1
- package/dist/esm/getDevServer.js +8 -0
- package/dist/esm/getDevServer.js.map +6 -0
- package/dist/esm/getDevServer.mjs +6 -0
- package/dist/esm/getDevServer.mjs.map +1 -0
- package/dist/esm/getDevServer.native.js +3 -0
- package/dist/esm/getDevServer.native.js.map +1 -0
- package/dist/esm/getURL.native.js +3 -2
- package/dist/esm/getURL.native.js.map +1 -1
- package/package.json +10 -10
- package/src/getDevServer.native.ts +5 -0
- package/src/getDevServer.ts +5 -0
- package/src/getURL.native.ts +10 -5
- package/types/getDevServer.d.ts +5 -0
- package/types/getDevServer.d.ts.map +1 -0
- package/types/getDevServer.native.d.ts +2 -0
- package/types/getDevServer.native.d.ts.map +1 -0
- package/types/getURL.native.d.ts.map +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var getDevServer_exports = {};
|
|
22
|
+
__export(getDevServer_exports, {
|
|
23
|
+
getDevServer: () => getDevServer
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(getDevServer_exports);
|
|
26
|
+
const getDevServer = () => ({
|
|
27
|
+
url: "",
|
|
28
|
+
bundleLoadedFromServer: !1
|
|
29
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var getDevServer_exports = {};
|
|
16
|
+
__export(getDevServer_exports, {
|
|
17
|
+
getDevServer: () => getDevServer
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(getDevServer_exports);
|
|
20
|
+
const getDevServer = () => ({
|
|
21
|
+
url: "",
|
|
22
|
+
bundleLoadedFromServer: !1
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=getDevServer.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
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
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
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);
|
|
34
|
+
var getDevServer_native_exports = {};
|
|
35
|
+
__export(getDevServer_native_exports, {
|
|
36
|
+
getDevServer: () => import_getDevServer.default
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(getDevServer_native_exports);
|
|
39
|
+
var import_getDevServer = __toESM(require("react-native/Libraries/Core/Devtools/getDevServer"), 1);
|
|
40
|
+
//# sourceMappingURL=getDevServer.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getDevServer_native_exports","__export","getDevServer","import_getDevServer","default","module","exports","__toCommonJS","__toESM","require"],"sources":["../../src/getDevServer.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAC;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAP,2BAAA;AAIA,IAAAG,mBAAA,GAAwCK,OAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var
|
|
8
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
8
|
for (var name in all) __defProp(target, name, {
|
|
11
9
|
get: all[name],
|
|
@@ -19,31 +17,23 @@ var __export = (target, all) => {
|
|
|
19
17
|
});
|
|
20
18
|
return to;
|
|
21
19
|
};
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
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);
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
34
23
|
var getURL_native_exports = {};
|
|
35
24
|
__export(getURL_native_exports, {
|
|
36
25
|
getURL: () => getURL
|
|
37
26
|
});
|
|
38
27
|
module.exports = __toCommonJS(getURL_native_exports);
|
|
39
|
-
var import_getDevServer =
|
|
28
|
+
var import_getDevServer = require("./getDevServer.native.js"),
|
|
29
|
+
hasWarnedOnce = !1;
|
|
40
30
|
function getURL() {
|
|
41
31
|
var url = process.env.ONE_SERVER_URL;
|
|
42
32
|
if (__DEV__) {
|
|
43
|
-
url || console.warn("The ONE_SERVER_URL environment variable is not set. While things will work in development mode as we'll be using your development server, you should still set ONE_SERVER_URL in your .env file for your production builds to work.");
|
|
33
|
+
url || hasWarnedOnce && (hasWarnedOnce = !0, console.warn("The ONE_SERVER_URL environment variable is not set. While things will work in development mode as we'll be using your development server, you should still set ONE_SERVER_URL in your .env file for your production builds to work."));
|
|
44
34
|
var {
|
|
45
35
|
url: devServerUrl
|
|
46
|
-
} = (0, import_getDevServer.
|
|
36
|
+
} = (0, import_getDevServer.getDevServer)();
|
|
47
37
|
url = devServerUrl;
|
|
48
38
|
}
|
|
49
39
|
return url || (url = "http://one-server.example.com"), url.replace(/\/+$/, "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getURL_native_exports","__export","getURL","module","exports","__toCommonJS","import_getDevServer","
|
|
1
|
+
{"version":3,"names":["getURL_native_exports","__export","getURL","module","exports","__toCommonJS","import_getDevServer","require","hasWarnedOnce","url","process","env","ONE_SERVER_URL","__DEV__","console","warn","devServerUrl","getDevServer","replace"],"sources":["../../src/getURL.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,qBAAA;AAAA,IAAAM,mBAAA,GAA6BC,OAAA;EACzBC,aAAA,GAAgB;AACb,SAASN,OAAA,EAAS;EACrB,IAAIO,GAAA,GAAMC,OAAA,CAAQC,GAAA,CAAIC,cAAA;EACtB,IAAIC,OAAA,EAAS;IAEJJ,GAAA,IACGD,aAAA,KACAA,aAAA,GAAgB,IAChBM,OAAA,CAAQC,IAAA,CAAK,qOAAqO;IAG1P,IAAI;MAAEN,GAAA,EAAKO;IAAa,QAAIV,mBAAA,CAAAW,YAAA,EAAa;IACzCR,GAAA,GAAMO,YAAA;EACV;EACA,OAAKP,GAAA,KAEDA,GAAA,GAAM,kCAEHA,GAAA,CAAIS,OAAA,CAAQ,QAAQ,EAAE;AACjC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getDevServer","url","bundleLoadedFromServer"],"sources":["../../src/getDevServer.ts"],"sourcesContent":[null],"mappings":"AACO,MAAMA,YAAA,GAAeA,CAAA,MAAO;EACjCC,GAAA,EAAK;EACLC,sBAAA,EAAwB;AAC1B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","default2"],"sources":["../../src/getDevServer.native.ts"],"sourcesContent":[null],"mappings":"AAIA,SAAoBA,OAAA,IAAXC,QAAA,QAA+B","ignoreList":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import getDevServer from "
|
|
1
|
+
import { getDevServer } from "./getDevServer.native.js";
|
|
2
|
+
var hasWarnedOnce = !1;
|
|
2
3
|
function getURL() {
|
|
3
4
|
var url = process.env.ONE_SERVER_URL;
|
|
4
5
|
if (__DEV__) {
|
|
5
|
-
url || console.warn("The ONE_SERVER_URL environment variable is not set. While things will work in development mode as we'll be using your development server, you should still set ONE_SERVER_URL in your .env file for your production builds to work.");
|
|
6
|
+
url || hasWarnedOnce && (hasWarnedOnce = !0, console.warn("The ONE_SERVER_URL environment variable is not set. While things will work in development mode as we'll be using your development server, you should still set ONE_SERVER_URL in your .env file for your production builds to work."));
|
|
6
7
|
var {
|
|
7
8
|
url: devServerUrl
|
|
8
9
|
} = getDevServer();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getDevServer","getURL","url","process","env","ONE_SERVER_URL","__DEV__","console","warn","devServerUrl","replace"],"sources":["../../src/getURL.native.ts"],"sourcesContent":[null],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"names":["getDevServer","hasWarnedOnce","getURL","url","process","env","ONE_SERVER_URL","__DEV__","console","warn","devServerUrl","replace"],"sources":["../../src/getURL.native.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,YAAA,QAAoB;AAC7B,IAAIC,aAAA,GAAgB;AACb,SAASC,OAAA,EAAS;EACrB,IAAIC,GAAA,GAAMC,OAAA,CAAQC,GAAA,CAAIC,cAAA;EACtB,IAAIC,OAAA,EAAS;IAEJJ,GAAA,IACGF,aAAA,KACAA,aAAA,GAAgB,IAChBO,OAAA,CAAQC,IAAA,CAAK,qOAAqO;IAG1P,IAAI;MAAEN,GAAA,EAAKO;IAAa,IAAIV,YAAA,CAAa;IACzCG,GAAA,GAAMO,YAAA;EACV;EACA,OAAKP,GAAA,KAEDA,GAAA,GAAM,kCAEHA,GAAA,CAAIQ,OAAA,CAAQ,QAAQ,EAAE;AACjC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"setup.mjs",
|
|
@@ -121,17 +121,17 @@
|
|
|
121
121
|
"@react-navigation/routers": "~7.5.1",
|
|
122
122
|
"@swc/core": "^1.14.0",
|
|
123
123
|
"@ungap/structured-clone": "^1.2.0",
|
|
124
|
-
"@vxrn/compiler": "1.2.
|
|
125
|
-
"@vxrn/resolve": "1.2.
|
|
126
|
-
"@vxrn/tslib-lite": "1.2.
|
|
127
|
-
"@vxrn/universal-color-scheme": "1.2.
|
|
128
|
-
"@vxrn/use-isomorphic-layout-effect": "1.2.
|
|
129
|
-
"@vxrn/vite-plugin-metro": "1.2.
|
|
124
|
+
"@vxrn/compiler": "1.2.18",
|
|
125
|
+
"@vxrn/resolve": "1.2.18",
|
|
126
|
+
"@vxrn/tslib-lite": "1.2.18",
|
|
127
|
+
"@vxrn/universal-color-scheme": "1.2.18",
|
|
128
|
+
"@vxrn/use-isomorphic-layout-effect": "1.2.18",
|
|
129
|
+
"@vxrn/vite-plugin-metro": "1.2.18",
|
|
130
130
|
"babel-dead-code-elimination": "^1.0.10",
|
|
131
131
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
132
132
|
"citty": "^0.1.6",
|
|
133
133
|
"core-js": "^3.38.1",
|
|
134
|
-
"create-vxrn": "1.2.
|
|
134
|
+
"create-vxrn": "1.2.18",
|
|
135
135
|
"escape-string-regexp": "^5.0.0",
|
|
136
136
|
"expo-linking": "~8.0.8",
|
|
137
137
|
"expo-modules-core": "~3.0.24",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"vite": "^7.1.12",
|
|
158
158
|
"vite-plugin-barrel": "^0.4.1",
|
|
159
159
|
"vite-tsconfig-paths": "^5.1.4",
|
|
160
|
-
"vxrn": "1.2.
|
|
160
|
+
"vxrn": "1.2.18",
|
|
161
161
|
"ws": "^8.18.0",
|
|
162
162
|
"xxhashjs": "^0.2.2"
|
|
163
163
|
},
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"devDependencies": {
|
|
176
176
|
"@react-navigation/core": "^7.13.0",
|
|
177
177
|
"@react-navigation/native": "~7.1.19",
|
|
178
|
-
"@tamagui/build": "^1.137.
|
|
178
|
+
"@tamagui/build": "^1.137.3",
|
|
179
179
|
"@types/node": "^24.10.0",
|
|
180
180
|
"@types/react-dom": "^19.2.2",
|
|
181
181
|
"@types/xxhashjs": "^0.2.4",
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Isolated to suppress deprecation warning for deep import
|
|
2
|
+
// React Native 0.81+ discourages deep imports but doesn't provide official alternative yet
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4
|
+
// @ts-ignore - Types not exported from react-native
|
|
5
|
+
export { default as getDevServer } from 'react-native/Libraries/Core/Devtools/getDevServer'
|
package/src/getURL.native.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import getDevServer from '
|
|
1
|
+
import { getDevServer } from './getDevServer'
|
|
2
|
+
|
|
3
|
+
let hasWarnedOnce = false
|
|
2
4
|
|
|
3
5
|
export function getURL() {
|
|
4
6
|
let url = process.env.ONE_SERVER_URL
|
|
@@ -6,12 +8,15 @@ export function getURL() {
|
|
|
6
8
|
if (__DEV__) {
|
|
7
9
|
// We'll be using the development server in development mode, but we still need to warn the user to set SERVER_URL for things to work in production.
|
|
8
10
|
if (!url) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
if (hasWarnedOnce) {
|
|
12
|
+
hasWarnedOnce = true
|
|
13
|
+
console.warn(
|
|
14
|
+
`The ONE_SERVER_URL environment variable is not set. While things will work in development mode as we'll be using your development server, you should still set ONE_SERVER_URL in your .env file for your production builds to work.`
|
|
15
|
+
)
|
|
16
|
+
}
|
|
12
17
|
}
|
|
13
18
|
|
|
14
|
-
const { url: devServerUrl } = getDevServer()
|
|
19
|
+
const { url: devServerUrl } = getDevServer()
|
|
15
20
|
url = devServerUrl
|
|
16
21
|
}
|
|
17
22
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDevServer.d.ts","sourceRoot":"","sources":["../src/getDevServer.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY;;;CAGvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDevServer.native.d.ts","sourceRoot":"","sources":["../src/getDevServer.native.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mDAAmD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getURL.native.d.ts","sourceRoot":"","sources":["../src/getURL.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getURL.native.d.ts","sourceRoot":"","sources":["../src/getURL.native.ts"],"names":[],"mappings":"AAIA,wBAAgB,MAAM,WAwBrB"}
|