@powerlines/plugin-napi-rs 0.2.136 → 0.2.138
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/_virtual/_rolldown/runtime.cjs +19 -0
- package/dist/_virtual/_rolldown/runtime.mjs +18 -0
- package/dist/helpers/format-path.cjs +10 -2
- package/dist/helpers/format-path.mjs +4 -2
- package/dist/helpers/format-path.mjs.map +1 -1
- package/dist/helpers/format-path.test.cjs +16 -0
- package/dist/helpers/format-path.test.d.cts +1 -0
- package/dist/helpers/format-path.test.d.mts +1 -0
- package/dist/helpers/format-path.test.mjs +18 -0
- package/dist/helpers/format-path.test.mjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/index.test.cjs +30 -0
- package/dist/index.test.d.cts +1 -0
- package/dist/index.test.d.mts +1 -0
- package/dist/index.test.mjs +32 -0
- package/dist/index.test.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +1487 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +1473 -0
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +889 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +888 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +1614 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +1594 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +923 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +922 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +391 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +386 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +82 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +82 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +1358 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +1357 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +561 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +559 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +37 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +38 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +197 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +181 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +29 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +27 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +77 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +374 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +374 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +38 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +37 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +1 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +2978 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +2973 -0
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +939 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +940 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +87 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +87 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +6 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +6 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +54 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +52 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +2696 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +2697 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +47 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +45 -0
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +1 -0
- package/dist/types/targets.cjs +12 -1
- package/dist/types/targets.mjs +7 -1
- package/dist/types/targets.mjs.map +1 -1
- package/dist/types/targets.test.cjs +16 -0
- package/dist/types/targets.test.d.cts +1 -0
- package/dist/types/targets.test.d.mts +1 -0
- package/dist/types/targets.test.mjs +18 -0
- package/dist/types/targets.test.mjs.map +1 -0
- package/package.json +67 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.BX5Fg8C4.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.1_@types+node@25.9.1_@vitest+coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js"],"sourcesContent":["import { getSafeTimers } from '@vitest/utils/timers';\n\nconst NAME_WORKER_STATE = \"__vitest_worker__\";\nclass EnvironmentTeardownError extends Error {\n\tname = \"EnvironmentTeardownError\";\n}\nfunction getWorkerState() {\n\t// @ts-expect-error untyped global\n\tconst workerState = globalThis[NAME_WORKER_STATE];\n\tif (!workerState) throw new Error(\"Vitest failed to access its internal state.\\n\\nOne of the following is possible:\\n- \\\"vitest\\\" is imported directly without running \\\"vitest\\\" command\\n- \\\"vitest\\\" is imported inside \\\"globalSetup\\\" (to fix this, use \\\"setupFiles\\\" instead, because \\\"globalSetup\\\" runs in a different context)\\n- \\\"vitest\\\" is imported inside Vite / Vitest config file\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n\");\n\treturn workerState;\n}\nfunction getSafeWorkerState() {\n\t// @ts-expect-error untyped global\n\treturn globalThis[NAME_WORKER_STATE];\n}\nfunction provideWorkerState(context, state) {\n\tObject.defineProperty(context, NAME_WORKER_STATE, {\n\t\tvalue: state,\n\t\tconfigurable: true,\n\t\twritable: true,\n\t\tenumerable: false\n\t});\n\treturn state;\n}\nfunction isChildProcess() {\n\treturn typeof process !== \"undefined\" && !!process.send;\n}\nfunction resetModules(modules, resetMocks = false) {\n\tconst skipPaths = [\n\t\t/\\/vitest\\/dist\\//,\n\t\t/vitest-virtual-\\w+\\/dist/,\n\t\t/@vitest\\/dist/,\n\t\t...!resetMocks ? [/^mock:/] : []\n\t];\n\tmodules.idToModuleMap.forEach((node, path) => {\n\t\tif (skipPaths.some((re) => re.test(path))) return;\n\t\tnode.promise = void 0;\n\t\tnode.exports = void 0;\n\t\tnode.evaluated = false;\n\t\tnode.importers.clear();\n\t});\n}\nfunction waitNextTick() {\n\tconst { setTimeout } = getSafeTimers();\n\treturn new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n\tawait waitNextTick();\n\tconst state = getWorkerState();\n\tconst promises = [];\n\tconst resolvingCount = state.resolvingModules.size;\n\tfor (const [_, mod] of state.evaluatedModules.idToModuleMap) if (mod.promise && !mod.evaluated) promises.push(mod.promise);\n\tif (!promises.length && !resolvingCount) return;\n\tawait Promise.allSettled(promises);\n\tawait waitForImportsToResolve();\n}\n\nexport { EnvironmentTeardownError as E, getSafeWorkerState as a, getWorkerState as g, isChildProcess as i, provideWorkerState as p, resetModules as r, waitForImportsToResolve as w };\n"],"x_google_ignoreList":[0],"mappings":";;;;AAKA,SAAA,iBAAA;CAEE,MAAM,cAAa,WAAQ;CAC5B,IAAK,CAAC,aAAa,MAAC,IAAA,MAAW,6cAAkB;CACjD,OAAK;AACN;AAcA,SAAA,iBAAA;CACA,OAAS,OAAA,YAAiB,eAAA,CAAA,CAAA,QAAA;AAC1B;AACA,SAAA,aAAA,SAAA,aAAA,OAAA;CACA,MAAQ,YAAC;EAAY;EAAoB;EAAU;EAAA,GAAA,CAAA,aAAA,CAAA,QAAA,IAAA,CAAA;CAAA;CAClD,QAAM,cAAY,SAAA,MAAA,SAAA;EACf,IAAC,UAAa,MAAE,OAAA,GAAA,KAAA,IAAA,CAAA,GAAA;EACjB,KAAM,UAAU,KAAI;EACnB,KAAA,UAAa,KAAA;EACb,KAAE,YAAe;EACnB,KAAA,UAAA,MAAA;CACD,CAAA;AACD;AACA,SAAO,eAAgB;CACrB,MAAK,EACL,eACI,cAAW;CACf,OAAC,IAAA,SAAA,YAAA,WAAA,SAAA,CAAA,CAAA;AACH;AACA,eAAS,0BAAe;CACvB,MAAO,aAAa;CACpB,MAAO,QAAI,eAAmB;CAC/B,MAAA,WAAA,CAAA;CACA,MAAM,iBAAS,MAAA,iBAA0B;CACxC,KAAM,MAAA,CAAA,GAAA,QAAc,MAAA,iBAAA,eAAA,IAAA,IAAA,WAAA,CAAA,IAAA,WAAA,SAAA,KAAA,IAAA,OAAA;CACpB,IAAK,CAAC,SAAQ,UAAA,CAAA,gBAAgB;CAC9B,MAAM,QAAS,WAAI,QAAA;CACnB,MAAM,wBAAuB;AAC9B"}
|
package/dist/types/targets.cjs
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
3
|
|
|
3
4
|
//#region src/types/targets.ts
|
|
5
|
+
var targets_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
AVAILABLE_TARGETS: () => AVAILABLE_TARGETS,
|
|
7
|
+
DEFAULT_TARGETS: () => DEFAULT_TARGETS
|
|
8
|
+
});
|
|
4
9
|
const AVAILABLE_TARGETS = [
|
|
5
10
|
"aarch64-apple-darwin",
|
|
6
11
|
"aarch64-linux-android",
|
|
@@ -36,4 +41,10 @@ const DEFAULT_TARGETS = [
|
|
|
36
41
|
|
|
37
42
|
//#endregion
|
|
38
43
|
exports.AVAILABLE_TARGETS = AVAILABLE_TARGETS;
|
|
39
|
-
exports.DEFAULT_TARGETS = DEFAULT_TARGETS;
|
|
44
|
+
exports.DEFAULT_TARGETS = DEFAULT_TARGETS;
|
|
45
|
+
Object.defineProperty(exports, 'targets_exports', {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () {
|
|
48
|
+
return targets_exports;
|
|
49
|
+
}
|
|
50
|
+
});
|
package/dist/types/targets.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/types/targets.ts
|
|
4
|
+
var targets_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
AVAILABLE_TARGETS: () => AVAILABLE_TARGETS,
|
|
6
|
+
DEFAULT_TARGETS: () => DEFAULT_TARGETS
|
|
7
|
+
});
|
|
2
8
|
const AVAILABLE_TARGETS = [
|
|
3
9
|
"aarch64-apple-darwin",
|
|
4
10
|
"aarch64-linux-android",
|
|
@@ -33,5 +39,5 @@ const DEFAULT_TARGETS = [
|
|
|
33
39
|
];
|
|
34
40
|
|
|
35
41
|
//#endregion
|
|
36
|
-
export { AVAILABLE_TARGETS, DEFAULT_TARGETS };
|
|
42
|
+
export { AVAILABLE_TARGETS, DEFAULT_TARGETS, targets_exports };
|
|
37
43
|
//# sourceMappingURL=targets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targets.mjs","names":[],"sources":["../../src/types/targets.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const AVAILABLE_TARGETS = [\n \"aarch64-apple-darwin\",\n \"aarch64-linux-android\",\n \"aarch64-unknown-linux-gnu\",\n \"aarch64-unknown-linux-musl\",\n \"aarch64-unknown-linux-ohos\",\n \"aarch64-pc-windows-msvc\",\n \"x86_64-apple-darwin\",\n \"x86_64-pc-windows-msvc\",\n \"x86_64-pc-windows-gnu\",\n \"x86_64-unknown-linux-gnu\",\n \"x86_64-unknown-linux-musl\",\n \"x86_64-unknown-linux-ohos\",\n \"x86_64-unknown-freebsd\",\n \"i686-pc-windows-msvc\",\n \"armv7-unknown-linux-gnueabihf\",\n \"armv7-unknown-linux-musleabihf\",\n \"armv7-linux-androideabi\",\n \"universal-apple-darwin\",\n \"loongarch64-unknown-linux-gnu\",\n \"riscv64gc-unknown-linux-gnu\",\n \"powerpc64le-unknown-linux-gnu\",\n \"s390x-unknown-linux-gnu\",\n \"wasm32-wasi-preview1-threads\",\n \"wasm32-wasip1-threads\"\n] as const;\n\nexport type TargetTriple = (typeof AVAILABLE_TARGETS)[number];\n\nexport const DEFAULT_TARGETS = [\n \"x86_64-apple-darwin\",\n \"aarch64-apple-darwin\",\n \"x86_64-pc-windows-msvc\",\n \"x86_64-unknown-linux-gnu\"\n] as const;\n\nexport type Platform = NodeJS.Platform | \"wasm\" | \"wasi\" | \"openharmony\";\n\n// https://nodejs.org/api/process.html#process_process_arch\ntype NodeJSArch =\n | \"arm\"\n | \"arm64\"\n | \"ia32\"\n | \"loong64\"\n | \"mips\"\n | \"mipsel\"\n | \"ppc\"\n | \"ppc64\"\n | \"riscv64\"\n | \"s390\"\n | \"s390x\"\n | \"x32\"\n | \"x64\"\n | \"universal\"\n | \"wasm32\";\n\nexport interface Target {\n triple: string;\n platformArchABI: string;\n platform: Platform;\n arch: NodeJSArch;\n abi: string | null;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"targets.mjs","names":[],"sources":["../../src/types/targets.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const AVAILABLE_TARGETS = [\n \"aarch64-apple-darwin\",\n \"aarch64-linux-android\",\n \"aarch64-unknown-linux-gnu\",\n \"aarch64-unknown-linux-musl\",\n \"aarch64-unknown-linux-ohos\",\n \"aarch64-pc-windows-msvc\",\n \"x86_64-apple-darwin\",\n \"x86_64-pc-windows-msvc\",\n \"x86_64-pc-windows-gnu\",\n \"x86_64-unknown-linux-gnu\",\n \"x86_64-unknown-linux-musl\",\n \"x86_64-unknown-linux-ohos\",\n \"x86_64-unknown-freebsd\",\n \"i686-pc-windows-msvc\",\n \"armv7-unknown-linux-gnueabihf\",\n \"armv7-unknown-linux-musleabihf\",\n \"armv7-linux-androideabi\",\n \"universal-apple-darwin\",\n \"loongarch64-unknown-linux-gnu\",\n \"riscv64gc-unknown-linux-gnu\",\n \"powerpc64le-unknown-linux-gnu\",\n \"s390x-unknown-linux-gnu\",\n \"wasm32-wasi-preview1-threads\",\n \"wasm32-wasip1-threads\"\n] as const;\n\nexport type TargetTriple = (typeof AVAILABLE_TARGETS)[number];\n\nexport const DEFAULT_TARGETS = [\n \"x86_64-apple-darwin\",\n \"aarch64-apple-darwin\",\n \"x86_64-pc-windows-msvc\",\n \"x86_64-unknown-linux-gnu\"\n] as const;\n\nexport type Platform = NodeJS.Platform | \"wasm\" | \"wasi\" | \"openharmony\";\n\n// https://nodejs.org/api/process.html#process_process_arch\ntype NodeJSArch =\n | \"arm\"\n | \"arm64\"\n | \"ia32\"\n | \"loong64\"\n | \"mips\"\n | \"mipsel\"\n | \"ppc\"\n | \"ppc64\"\n | \"riscv64\"\n | \"s390\"\n | \"s390x\"\n | \"x32\"\n | \"x64\"\n | \"universal\"\n | \"wasm32\";\n\nexport interface Target {\n triple: string;\n platformArchABI: string;\n platform: Platform;\n arch: NodeJSArch;\n abi: string | null;\n}\n"],"mappings":";;;;;;;AAkBA,MAAa,oBAAoB;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;AAAA;AACjC,MAAW,kBAAa;CAAA;CAAA;CAAA;CAAA;AAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_chunk_artifact = require('../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
|
|
2
|
+
const require_test_DNmyFkvJ = require('../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
|
|
3
|
+
const require_types_targets = require('./targets.cjs');
|
|
4
|
+
|
|
5
|
+
//#region src/types/targets.test.ts
|
|
6
|
+
require_chunk_artifact.describe("plugins/plugin-napi-rs/src/types/targets.ts", () => {
|
|
7
|
+
require_chunk_artifact.it("loads module exports", () => {
|
|
8
|
+
require_test_DNmyFkvJ.globalExpect(require_types_targets.targets_exports).toBeDefined();
|
|
9
|
+
require_test_DNmyFkvJ.globalExpect(typeof require_types_targets.targets_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
require_chunk_artifact.it("has at least one runtime export", () => {
|
|
12
|
+
require_test_DNmyFkvJ.globalExpect(Object.keys(require_types_targets.targets_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { describe, it } from "../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
|
|
2
|
+
import { globalExpect } from "../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
|
|
3
|
+
import { targets_exports } from "./targets.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/targets.test.ts
|
|
6
|
+
describe("plugins/plugin-napi-rs/src/types/targets.ts", () => {
|
|
7
|
+
it("loads module exports", () => {
|
|
8
|
+
globalExpect(targets_exports).toBeDefined();
|
|
9
|
+
globalExpect(typeof targets_exports).toBe("object");
|
|
10
|
+
});
|
|
11
|
+
it("has at least one runtime export", () => {
|
|
12
|
+
globalExpect(Object.keys(targets_exports).length).toBeGreaterThan(0);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
18
|
+
//# sourceMappingURL=targets.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targets.test.mjs","names":[],"sources":["../../src/types/targets.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./targets\";\n\ndescribe(\"plugins/plugin-napi-rs/src/types/targets.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAiC;EAC7B,aAAO,eAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,eAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-napi-rs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.138",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for integrating with N-API Rust modules.",
|
|
6
6
|
"keywords": ["napi-rs", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -68,6 +68,34 @@
|
|
|
68
68
|
"default": "./dist/helpers/format-path.mjs"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
+
"./helpers/format-path.test": {
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./dist/helpers/format-path.test.d.cts",
|
|
74
|
+
"default": "./dist/helpers/format-path.test.cjs"
|
|
75
|
+
},
|
|
76
|
+
"import": {
|
|
77
|
+
"types": "./dist/helpers/format-path.test.d.mts",
|
|
78
|
+
"default": "./dist/helpers/format-path.test.mjs"
|
|
79
|
+
},
|
|
80
|
+
"default": {
|
|
81
|
+
"types": "./dist/helpers/format-path.test.d.mts",
|
|
82
|
+
"default": "./dist/helpers/format-path.test.mjs"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"./index.test": {
|
|
86
|
+
"require": {
|
|
87
|
+
"types": "./dist/index.test.d.cts",
|
|
88
|
+
"default": "./dist/index.test.cjs"
|
|
89
|
+
},
|
|
90
|
+
"import": {
|
|
91
|
+
"types": "./dist/index.test.d.mts",
|
|
92
|
+
"default": "./dist/index.test.mjs"
|
|
93
|
+
},
|
|
94
|
+
"default": {
|
|
95
|
+
"types": "./dist/index.test.d.mts",
|
|
96
|
+
"default": "./dist/index.test.mjs"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
71
99
|
"./package.json": "./package.json",
|
|
72
100
|
"./types": {
|
|
73
101
|
"require": {
|
|
@@ -111,6 +139,20 @@
|
|
|
111
139
|
"default": "./dist/types/targets.mjs"
|
|
112
140
|
}
|
|
113
141
|
},
|
|
142
|
+
"./types/targets.test": {
|
|
143
|
+
"require": {
|
|
144
|
+
"types": "./dist/types/targets.test.d.cts",
|
|
145
|
+
"default": "./dist/types/targets.test.cjs"
|
|
146
|
+
},
|
|
147
|
+
"import": {
|
|
148
|
+
"types": "./dist/types/targets.test.d.mts",
|
|
149
|
+
"default": "./dist/types/targets.test.mjs"
|
|
150
|
+
},
|
|
151
|
+
"default": {
|
|
152
|
+
"types": "./dist/types/targets.test.d.mts",
|
|
153
|
+
"default": "./dist/types/targets.test.mjs"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
114
156
|
"./types/wasm": {
|
|
115
157
|
"require": {
|
|
116
158
|
"types": "./dist/types/wasm.d.cts",
|
|
@@ -137,22 +179,35 @@
|
|
|
137
179
|
"@alloy-js/markdown": "^0.23.0",
|
|
138
180
|
"@alloy-js/typescript": "^0.23.0",
|
|
139
181
|
"@napi-rs/cli": "^3.7.0",
|
|
140
|
-
"@powerlines/plugin-alloy": "0.26.
|
|
141
|
-
"@powerlines/plugin-automd": "0.1.
|
|
142
|
-
"@powerlines/plugin-plugin": "0.12.
|
|
143
|
-
"@stryke/convert": "^0.7.
|
|
144
|
-
"@stryke/fs": "^0.33.
|
|
145
|
-
"@stryke/path": "^0.29.
|
|
146
|
-
"@stryke/string-format": "^0.17.
|
|
147
|
-
"@stryke/type-checks": "^0.6.
|
|
148
|
-
"@stryke/types": "^0.12.
|
|
182
|
+
"@powerlines/plugin-alloy": "0.26.181",
|
|
183
|
+
"@powerlines/plugin-automd": "0.1.550",
|
|
184
|
+
"@powerlines/plugin-plugin": "0.12.501",
|
|
185
|
+
"@stryke/convert": "^0.7.11",
|
|
186
|
+
"@stryke/fs": "^0.33.80",
|
|
187
|
+
"@stryke/path": "^0.29.7",
|
|
188
|
+
"@stryke/string-format": "^0.17.22",
|
|
189
|
+
"@stryke/type-checks": "^0.6.13",
|
|
190
|
+
"@stryke/types": "^0.12.8",
|
|
149
191
|
"automd": "^0.4.3",
|
|
150
192
|
"defu": "^6.1.7",
|
|
151
|
-
"powerlines": "0.47.
|
|
193
|
+
"powerlines": "0.47.89"
|
|
152
194
|
},
|
|
153
195
|
"devDependencies": { "@types/node": "^25.9.1" },
|
|
154
196
|
"peerDependencies": { "@napi-rs/wasm-runtime": ">=1.1.4" },
|
|
155
197
|
"peerDependenciesMeta": { "@napi-rs/wasm-runtime": { "optional": true } },
|
|
156
198
|
"publishConfig": { "access": "public" },
|
|
157
|
-
"
|
|
199
|
+
"inlinedDependencies": {
|
|
200
|
+
"@jridgewell/sourcemap-codec": "1.5.5",
|
|
201
|
+
"@vitest/expect": "4.1.7",
|
|
202
|
+
"@vitest/pretty-format": "4.1.7",
|
|
203
|
+
"@vitest/runner": "4.1.7",
|
|
204
|
+
"@vitest/snapshot": "4.1.7",
|
|
205
|
+
"@vitest/spy": "4.1.7",
|
|
206
|
+
"@vitest/utils": "4.1.7",
|
|
207
|
+
"chai": "6.2.2",
|
|
208
|
+
"magic-string": "0.30.21",
|
|
209
|
+
"tinyrainbow": "3.1.0",
|
|
210
|
+
"vitest": "4.1.7"
|
|
211
|
+
},
|
|
212
|
+
"gitHead": "0b8ebdde5e6e57b8a983e447e0fbb94469a5bd1a"
|
|
158
213
|
}
|