nitropack-nightly 2.11.4-20250306-154657.153f7328 → 2.11.4-20250306-162545.4eb905b7
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/cli/build.mjs +4 -0
- package/dist/cli/dev.mjs +4 -0
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli/build.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import nodeCrypto from 'node:crypto';
|
|
1
2
|
import { defineCommand } from 'citty';
|
|
2
3
|
import { createNitro, prepare, copyPublicAssets, prerender, build as build$1 } from 'nitropack/core';
|
|
3
4
|
import { resolve } from 'pathe';
|
|
4
5
|
import { c as commonArgs } from './common.mjs';
|
|
5
6
|
|
|
7
|
+
if (!globalThis.crypto) {
|
|
8
|
+
globalThis.crypto = nodeCrypto;
|
|
9
|
+
}
|
|
6
10
|
const build = defineCommand({
|
|
7
11
|
meta: {
|
|
8
12
|
name: "build",
|
package/dist/cli/dev.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import nodeCrypto from 'node:crypto';
|
|
1
2
|
import { defineCommand } from 'citty';
|
|
2
3
|
import { consola } from 'consola';
|
|
3
4
|
import { getArgs, parseArgs } from 'listhen/cli';
|
|
@@ -6,6 +7,9 @@ import { resolve } from 'pathe';
|
|
|
6
7
|
import { c as commonArgs } from './common.mjs';
|
|
7
8
|
|
|
8
9
|
const hmrKeyRe = /^runtimeConfig\.|routeRules\./;
|
|
10
|
+
if (!globalThis.crypto) {
|
|
11
|
+
globalThis.crypto = nodeCrypto;
|
|
12
|
+
}
|
|
9
13
|
const dev = defineCommand({
|
|
10
14
|
meta: {
|
|
11
15
|
name: "dev",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
package/package.json
CHANGED