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.
@@ -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",
@@ -1,3 +1,3 @@
1
- const version = "2.11.4-20250306-154657.153f7328";
1
+ const version = "2.11.4-20250306-162545.4eb905b7";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.4-20250306-154657.153f7328";
1
+ const version = "2.11.4-20250306-162545.4eb905b7";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.4-20250306-154657.153f7328";
1
+ const version = "2.11.4-20250306-162545.4eb905b7";
2
2
 
3
3
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.4-20250306-154657.153f7328",
3
+ "version": "2.11.4-20250306-162545.4eb905b7",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",