one 1.1.274 → 1.1.276
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cli/main.js +15 -3
- package/dist/cjs/cli/main.js.map +1 -1
- package/dist/cjs/cli/main.native.js +16 -3
- package/dist/cjs/cli/main.native.js.map +2 -2
- package/dist/esm/cli/main.js +14 -2
- package/dist/esm/cli/main.js.map +1 -1
- package/dist/esm/cli/main.mjs +14 -2
- package/dist/esm/cli/main.mjs.map +1 -1
- package/dist/esm/cli/main.native.js +20 -2
- package/dist/esm/cli/main.native.js.map +1 -1
- package/package.json +5 -5
- package/src/cli/main.ts +28 -4
- package/types/cli/main.d.ts +1 -1
- package/types/cli/main.d.ts.map +1 -1
package/dist/cjs/cli/main.js
CHANGED
@@ -25,9 +25,21 @@ __export(main_exports, {
|
|
25
25
|
cliMain: () => cliMain
|
26
26
|
});
|
27
27
|
module.exports = __toCommonJS(main_exports);
|
28
|
-
var import_node_fs = require("node:fs"), import_run = require("./run");
|
29
|
-
|
30
|
-
|
28
|
+
var import_node_fs = require("node:fs"), import_node_module = require("node:module"), import_run = require("./run");
|
29
|
+
const import_meta = {};
|
30
|
+
async function getLatestVersion(packageName) {
|
31
|
+
const currentVersion = (0, import_node_module.createRequire)(import_meta.url)("one/package.json").version;
|
32
|
+
try {
|
33
|
+
const latest = (await (await fetch(`https://registry.npmjs.org/${packageName}`)).json())["dist-tags"].latest;
|
34
|
+
latest && currentVersion !== latest && (console.info(`
|
35
|
+
\u2776 Update available: ${currentVersion} \u2192 ${latest}`), console.info(`Run "npx one@latest" or "npm install -g one@latest" to update globally.
|
36
|
+
`));
|
37
|
+
} catch (error) {
|
38
|
+
console.error("Failed to fetch the latest version:", error);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
async function cliMain(args = {}) {
|
42
|
+
getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)(args), process.exit(0));
|
31
43
|
const { create } = await import("create-vxrn/create");
|
32
44
|
await create({});
|
33
45
|
}
|
package/dist/cjs/cli/main.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/cli/main.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA2B,oBAC3B,aAAoB;
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA2B,oBAC3B,qBAA8B,wBAC9B,aAAoB;AAFpB;AAIA,eAAe,iBAAiB,aAAqB;AAInD,QAAM,qBAHU,kCAAc,YAAY,GAAG,EAER,kBAAkB,EACpB;AAEnC,MAAI;AAGF,UAAM,UADO,OADI,MAAM,MAAM,8BAA8B,WAAW,EAAE,GAC5C,KAAK,GACb,WAAW,EAAE;AAEjC,IAAI,UAAU,mBAAmB,WAE/B,QAAQ,KAAK;AAAA,2BAAyB,cAAc,WAAM,MAAM,EAAE,GAClE,QAAQ,KAAK;AAAA,CAA2E;AAAA,EAE5F,SAAS,OAAO;AACd,YAAQ,MAAM,uCAAuC,KAAK;AAAA,EAC5D;AACF;AAEA,eAAsB,QAAQ,OAAO,CAAC,GAAG;AAEvC,EAAK,iBAAiB,KAAK,OAEvB,2BAAW,gBAAgB,MAE7B,UAAM,gBAAI,IAAI,GACd,QAAQ,KAAK,CAAC;AAGhB,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,oBAAoB;AACpD,QAAM,OAAO,CAAC,CAAC;AACjB;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -26,9 +26,22 @@ __export(main_exports, {
|
|
26
26
|
cliMain: () => cliMain
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(main_exports);
|
29
|
-
var import_node_fs = require("node:fs"), import_run = require("./run");
|
30
|
-
|
31
|
-
|
29
|
+
var import_node_fs = require("node:fs"), import_node_module = require("node:module"), import_run = require("./run");
|
30
|
+
const import_meta = {};
|
31
|
+
async function getLatestVersion(packageName) {
|
32
|
+
var require2 = (0, import_node_module.createRequire)(import_meta.url), _confuseDepCheck = require2, packageJson = _confuseDepCheck("one/package.json"), currentVersion = packageJson.version;
|
33
|
+
try {
|
34
|
+
var response = await fetch(`https://registry.npmjs.org/${packageName}`), data = await response.json(), latest = data["dist-tags"].latest;
|
35
|
+
latest && currentVersion !== latest && (console.info(`
|
36
|
+
\u2776 Update available: ${currentVersion} \u2192 ${latest}`), console.info(`Run "npx one@latest" or "npm install -g one@latest" to update globally.
|
37
|
+
`));
|
38
|
+
} catch (error) {
|
39
|
+
console.error("Failed to fetch the latest version:", error);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
async function cliMain() {
|
43
|
+
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
44
|
+
getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)(args), process.exit(0));
|
32
45
|
var { create } = await import("create-vxrn/create");
|
33
46
|
await create({});
|
34
47
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/cli/Users/n8/vxrn/packages/one/src/cli/main.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;qBAA2B,oBAC3B,aAAoB;
|
5
|
-
"names": ["cliMain", "args", "existsSync", "run", "process", "exit", "create"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;qBAA2B,oBAC3B,qBAA8B,wBAC9B,aAAoB;AAFpB;AAIA,eAAeA,iBAAiBC,aAAmB;AACjD,MAAMC,eAAUC,kCAAc,YAAYC,GAAG,GACvCC,mBAAmBH,UACnBI,cAAcD,iBAAiB,kBAAA,GAC/BE,iBAAiBD,YAAYE;AAEnC,MAAI;AACF,QAAMC,WAAW,MAAMC,MAAM,8BAA8BT,WAAAA,EAAa,GAClEU,OAAO,MAAMF,SAASG,KAAI,GAC1BC,SAASF,KAAK,WAAA,EAAaE;AAEjC,IAAIA,UAAUN,mBAAmBM,WAE/BC,QAAQC,KAAK;2BAAyBR,cAAAA,WAAoBM,MAAAA,EAAQ,GAClEC,QAAQC,KAAK;CAAA;EAEjB,SAASC,OAAO;AACdF,YAAQE,MAAM,uCAAuCA,KAAAA;EACvD;AACF;AAEA,eAAsBC,UAAAA;MAAQC,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAO,CAAC;AAEpC,EAAKlB,iBAAiB,KAAA,OAElBmB,2BAAW,gBAAA,MAEb,UAAMC,gBAAIF,IAAAA,GACVG,QAAQC,KAAK,CAAA;AAGf,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,oBAAA;AAChC,QAAMA,OAAO,CAAC,CAAA;AAChB;",
|
5
|
+
"names": ["getLatestVersion", "packageName", "require", "createRequire", "url", "_confuseDepCheck", "packageJson", "currentVersion", "version", "response", "fetch", "data", "json", "latest", "console", "info", "error", "cliMain", "args", "existsSync", "run", "process", "exit", "create"]
|
6
6
|
}
|
package/dist/esm/cli/main.js
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
import { existsSync } from "node:fs";
|
2
|
+
import { createRequire } from "node:module";
|
2
3
|
import { run } from "./run";
|
3
|
-
async function
|
4
|
-
|
4
|
+
async function getLatestVersion(packageName) {
|
5
|
+
const currentVersion = createRequire(import.meta.url)("one/package.json").version;
|
6
|
+
try {
|
7
|
+
const latest = (await (await fetch(`https://registry.npmjs.org/${packageName}`)).json())["dist-tags"].latest;
|
8
|
+
latest && currentVersion !== latest && (console.info(`
|
9
|
+
\u2776 Update available: ${currentVersion} \u2192 ${latest}`), console.info(`Run "npx one@latest" or "npm install -g one@latest" to update globally.
|
10
|
+
`));
|
11
|
+
} catch (error) {
|
12
|
+
console.error("Failed to fetch the latest version:", error);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
async function cliMain(args = {}) {
|
16
|
+
getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
|
5
17
|
const { create } = await import("create-vxrn/create");
|
6
18
|
await create({});
|
7
19
|
}
|
package/dist/esm/cli/main.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/cli/main.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,WAAW;AAEpB,eAAsB,QAAQ,
|
4
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,WAAW;AAEpB,eAAe,iBAAiB,aAAqB;AAInD,QAAM,iBAHU,cAAc,YAAY,GAAG,EAER,kBAAkB,EACpB;AAEnC,MAAI;AAGF,UAAM,UADO,OADI,MAAM,MAAM,8BAA8B,WAAW,EAAE,GAC5C,KAAK,GACb,WAAW,EAAE;AAEjC,IAAI,UAAU,mBAAmB,WAE/B,QAAQ,KAAK;AAAA,2BAAyB,cAAc,WAAM,MAAM,EAAE,GAClE,QAAQ,KAAK;AAAA,CAA2E;AAAA,EAE5F,SAAS,OAAO;AACd,YAAQ,MAAM,uCAAuC,KAAK;AAAA,EAC5D;AACF;AAEA,eAAsB,QAAQ,OAAO,CAAC,GAAG;AAEvC,EAAK,iBAAiB,KAAK,GAEvB,WAAW,gBAAgB,MAE7B,MAAM,IAAI,IAAI,GACd,QAAQ,KAAK,CAAC;AAGhB,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,oBAAoB;AACpD,QAAM,OAAO,CAAC,CAAC;AACjB;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/cli/main.mjs
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
import { existsSync } from "node:fs";
|
2
|
+
import { createRequire } from "node:module";
|
2
3
|
import { run } from "./run.mjs";
|
3
|
-
async function
|
4
|
-
|
4
|
+
async function getLatestVersion(packageName) {
|
5
|
+
const currentVersion = createRequire(import.meta.url)("one/package.json").version;
|
6
|
+
try {
|
7
|
+
const latest = (await (await fetch(`https://registry.npmjs.org/${packageName}`)).json())["dist-tags"].latest;
|
8
|
+
latest && currentVersion !== latest && (console.info(`
|
9
|
+
\u2776 Update available: ${currentVersion} \u2192 ${latest}`), console.info(`Run "npx one@latest" or "npm install -g one@latest" to update globally.
|
10
|
+
`));
|
11
|
+
} catch (error) {
|
12
|
+
console.error("Failed to fetch the latest version:", error);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
async function cliMain(args = {}) {
|
16
|
+
getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
|
5
17
|
const {
|
6
18
|
create
|
7
19
|
} = await import("create-vxrn/create");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["existsSync","run","cliMain","args","process","exit","create"],"sources":["../../../src/cli/main.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,GAAA,QAAW;AAEpB,eAAsBC,QAAQC,IAAA,
|
1
|
+
{"version":3,"names":["existsSync","createRequire","run","getLatestVersion","packageName","currentVersion","import","meta","url","version","latest","fetch","json","console","info","error","cliMain","args","process","exit","create"],"sources":["../../../src/cli/main.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,aAAA,QAAqB;AAC9B,SAASC,GAAA,QAAW;AAEpB,eAAeC,iBAAiBC,WAAA,EAAqB;EAInD,MAAMC,cAAA,GAHUJ,aAAA,CAAcK,MAAA,CAAAC,IAAA,CAAYC,GAAG,EAER,kBAAkB,EACpBC,OAAA;EAEnC,IAAI;IAGF,MAAMC,MAAA,IADO,OADI,MAAMC,KAAA,CAAM,8BAA8BP,WAAW,EAAE,GAC5CQ,IAAA,CAAK,GACb,WAAW,EAAEF,MAAA;IAE7BA,MAAA,IAAUL,cAAA,KAAmBK,MAAA,KAE/BG,OAAA,CAAQC,IAAA,CAAK;AAAA,2BAAyBT,cAAc,WAAMK,MAAM,EAAE,GAClEG,OAAA,CAAQC,IAAA,CAAK;AAAA,CAA2E;EAE5F,SAASC,KAAA,EAAO;IACdF,OAAA,CAAQE,KAAA,CAAM,uCAAuCA,KAAK;EAC5D;AACF;AAEA,eAAsBC,QAAQC,IAAA,GAAO,CAAC,GAAG;EAElCd,gBAAA,CAAiB,KAAK,GAEvBH,UAAA,CAAW,gBAAgB,MAE7B,MAAME,GAAA,CAAIe,IAAI,GACdC,OAAA,CAAQC,IAAA,CAAK,CAAC;EAGhB,MAAM;IAAEC;EAAO,IAAI,MAAM,OAAO,oBAAoB;EACpD,MAAMA,MAAA,CAAO,CAAC,CAAC;AACjB","ignoreList":[]}
|
@@ -1,7 +1,25 @@
|
|
1
1
|
import { existsSync } from "node:fs";
|
2
|
+
import { createRequire } from "node:module";
|
2
3
|
import { run } from "./run.native.js";
|
3
|
-
async function
|
4
|
-
|
4
|
+
async function getLatestVersion(packageName) {
|
5
|
+
var require2 = createRequire(import.meta.url),
|
6
|
+
_confuseDepCheck = require2,
|
7
|
+
packageJson = _confuseDepCheck("one/package.json"),
|
8
|
+
currentVersion = packageJson.version;
|
9
|
+
try {
|
10
|
+
var response = await fetch(`https://registry.npmjs.org/${packageName}`),
|
11
|
+
data = await response.json(),
|
12
|
+
latest = data["dist-tags"].latest;
|
13
|
+
latest && currentVersion !== latest && (console.info(`
|
14
|
+
\u2776 Update available: ${currentVersion} \u2192 ${latest}`), console.info(`Run "npx one@latest" or "npm install -g one@latest" to update globally.
|
15
|
+
`));
|
16
|
+
} catch (error) {
|
17
|
+
console.error("Failed to fetch the latest version:", error);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
async function cliMain() {
|
21
|
+
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
22
|
+
getLatestVersion("one"), existsSync("vite.config.ts") && (await run(args), process.exit(0));
|
5
23
|
var {
|
6
24
|
create
|
7
25
|
} = await import("create-vxrn/create");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["existsSync","run","cliMain","args","process","exit","create"],"sources":["../../../src/cli/main.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,GAAA,QAAW;AAEpB,
|
1
|
+
{"version":3,"names":["existsSync","createRequire","run","getLatestVersion","packageName","require2","import","meta","url","_confuseDepCheck","packageJson","currentVersion","version","response","fetch","data","json","latest","console","info","error","cliMain","args","arguments","length","process","exit","create"],"sources":["../../../src/cli/main.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,UAAA,QAAkB;AAC3B,SAASC,aAAA,QAAqB;AAC9B,SAASC,GAAA,QAAW;AAEpB,eAAeC,iBAAiBC,WAAA,EAAqB;EAInD,IAAAC,QAAM,GAAAJ,aAHU,CAAAK,MAAA,CAAAC,IAAc,CAAAC,GAAA;IAAAC,gBAEO,GAAAJ,QACF;IAAAK,WAAA,GAAAD,gBAAA;IAAAE,cAAA,GAAAD,WAAA,CAAAE,OAAA;EAEnC,IAAI;IAGF,IAAAC,QAAM,SADOC,KADI,+BAAYV,WAA8B;MAAAW,IAAW,GAAE,MACvCF,QACb,CAAAG,IAAA,CAAW;MAAEC,MAAA,GAAAF,IAAA,cAAAE,MAAA;IAE7BA,MAAA,IAAUN,cAAA,KAAmBM,MAAA,KAE/BC,OAAA,CAAQC,IAAA,CAAK;AAAA,2BAAyBR,cAAc,WAAMM,MAAM,EAAE,GAClEC,OAAA,CAAQC,IAAA,CAAK;AAAA,CAA2E;EAE5F,SAASC,KAAA,EAAO;IACdF,OAAA,CAAQE,KAAA,CAAM,uCAAuCA,KAAK;EAC5D;AACF;AAEA,eAAsBC,QAAA,EAAQ;EAEvB,IAAAC,IAAA,GAAAC,SAAiB,CAAAC,MAElB,QAAAD,SAAW,QAAgB,MAE7B,GAAAA,SAAU,EAAI,IACd;EAGFpB,gBAAe,MAAI,GAAMH,UAAO,iBAAoB,YAAAE,GAAA,CAAAoB,IAAA,GAAAG,OAAA,CAAAC,IAAA;EACpD;IAAMC;EAAO,CAAC,GAAC;EACjB,MAAAA,MAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.276",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -89,12 +89,12 @@
|
|
89
89
|
"@react-navigation/native-stack": "~6.9.13",
|
90
90
|
"@react-navigation/routers": "~6.1.9",
|
91
91
|
"@ungap/structured-clone": "^1.2.0",
|
92
|
-
"@vxrn/universal-color-scheme": "1.1.
|
93
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
92
|
+
"@vxrn/universal-color-scheme": "1.1.276",
|
93
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.276",
|
94
94
|
"babel-dead-code-elimination": "^1.0.6",
|
95
95
|
"citty": "^0.1.6",
|
96
96
|
"core-js": "^3.38.1",
|
97
|
-
"create-vxrn": "1.1.
|
97
|
+
"create-vxrn": "1.1.276",
|
98
98
|
"dotenv": "^16.4.5",
|
99
99
|
"escape-string-regexp": "^5.0.0",
|
100
100
|
"expo-linking": "~6.3.1",
|
@@ -116,7 +116,7 @@
|
|
116
116
|
"url-parse": "^1.5.10",
|
117
117
|
"vite": "6.0.0-beta.1",
|
118
118
|
"vite-tsconfig-paths": "^5.0.1",
|
119
|
-
"vxrn": "1.1.
|
119
|
+
"vxrn": "1.1.276",
|
120
120
|
"ws": "^8.18.0",
|
121
121
|
"xxhashjs": "^0.2.2"
|
122
122
|
},
|
package/src/cli/main.ts
CHANGED
@@ -1,14 +1,38 @@
|
|
1
1
|
import { existsSync } from 'node:fs'
|
2
|
+
import { createRequire } from 'node:module'
|
2
3
|
import { run } from './run'
|
3
4
|
|
4
|
-
|
5
|
+
async function getLatestVersion(packageName: string) {
|
6
|
+
const require = createRequire(import.meta.url)
|
7
|
+
const _confuseDepCheck = require
|
8
|
+
const packageJson = _confuseDepCheck('one/package.json')
|
9
|
+
const currentVersion = packageJson.version
|
10
|
+
|
11
|
+
try {
|
12
|
+
const response = await fetch(`https://registry.npmjs.org/${packageName}`)
|
13
|
+
const data = await response.json()
|
14
|
+
const latest = data['dist-tags'].latest
|
15
|
+
|
16
|
+
if (latest && currentVersion !== latest) {
|
17
|
+
// Step 4: Log the message
|
18
|
+
console.info(`\n❶ Update available: ${currentVersion} → ${latest}`)
|
19
|
+
console.info('Run "npx one@latest" or "npm install -g one@latest" to update globally.\n')
|
20
|
+
}
|
21
|
+
} catch (error) {
|
22
|
+
console.error('Failed to fetch the latest version:', error)
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
export async function cliMain(args = {}) {
|
27
|
+
// async as the flow takes a minute anyway
|
28
|
+
void getLatestVersion('one')
|
29
|
+
|
5
30
|
if (existsSync('vite.config.ts')) {
|
6
|
-
//
|
7
|
-
await run(args
|
31
|
+
// Inside existing app, let's just run the damn thing
|
32
|
+
await run(args)
|
8
33
|
process.exit(0)
|
9
34
|
}
|
10
35
|
|
11
36
|
const { create } = await import('create-vxrn/create')
|
12
|
-
|
13
37
|
await create({})
|
14
38
|
}
|
package/types/cli/main.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare function cliMain(args?:
|
1
|
+
export declare function cliMain(args?: {}): Promise<void>;
|
2
2
|
//# sourceMappingURL=main.d.ts.map
|
package/types/cli/main.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":"AAyBA,wBAAsB,OAAO,CAAC,IAAI,KAAK,iBAYtC"}
|