vident-rum 0.10.3 → 0.10.4
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/next.cjs.map +1 -1
- package/dist/next.d.cts +3 -2
- package/dist/next.d.ts +3 -2
- package/dist/next.js.map +1 -1
- package/package.json +1 -1
package/dist/next.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/next.ts"],"sourcesContent":["import { execSync } from \"node:child_process\"\n\ntype NextConfig =
|
|
1
|
+
{"version":3,"sources":["../src/next.ts"],"sourcesContent":["import { execSync } from \"node:child_process\"\n\ntype NextConfig = {\n\tproductionBrowserSourceMaps?: boolean\n\tenv?: Record<string, string>\n\t[key: string]: unknown\n}\n\nfunction detectRelease(): string | undefined {\n\tif (process.env.VIDENT_RELEASE) return process.env.VIDENT_RELEASE\n\tif (process.env.VERCEL_GIT_COMMIT_SHA)\n\t\treturn process.env.VERCEL_GIT_COMMIT_SHA\n\ttry {\n\t\treturn execSync(\"git rev-parse HEAD\", { encoding: \"utf-8\" }).trim()\n\t} catch {\n\t\treturn undefined\n\t}\n}\n\nexport function withVident<T extends NextConfig>(nextConfig: T = {} as T): T {\n\tconst release = detectRelease()\n\n\treturn {\n\t\t...nextConfig,\n\t\tproductionBrowserSourceMaps: true,\n\t\tenv: {\n\t\t\t...nextConfig.env,\n\t\t\t...(release ? { NEXT_PUBLIC_VIDENT_RELEASE: release } : {}),\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAyB;AAQzB,SAAS,gBAAoC;AAC5C,MAAI,QAAQ,IAAI,eAAgB,QAAO,QAAQ,IAAI;AACnD,MAAI,QAAQ,IAAI;AACf,WAAO,QAAQ,IAAI;AACpB,MAAI;AACH,eAAO,oCAAS,sBAAsB,EAAE,UAAU,QAAQ,CAAC,EAAE,KAAK;AAAA,EACnE,QAAQ;AACP,WAAO;AAAA,EACR;AACD;AAEO,SAAS,WAAiC,aAAgB,CAAC,GAAW;AAC5E,QAAM,UAAU,cAAc;AAE9B,SAAO;AAAA,IACN,GAAG;AAAA,IACH,6BAA6B;AAAA,IAC7B,KAAK;AAAA,MACJ,GAAG,WAAW;AAAA,MACd,GAAI,UAAU,EAAE,4BAA4B,QAAQ,IAAI,CAAC;AAAA,IAC1D;AAAA,EACD;AACD;","names":[]}
|
package/dist/next.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
type NextConfig =
|
|
1
|
+
type NextConfig = {
|
|
2
2
|
productionBrowserSourceMaps?: boolean;
|
|
3
3
|
env?: Record<string, string>;
|
|
4
|
+
[key: string]: unknown;
|
|
4
5
|
};
|
|
5
|
-
declare function withVident(nextConfig?:
|
|
6
|
+
declare function withVident<T extends NextConfig>(nextConfig?: T): T;
|
|
6
7
|
|
|
7
8
|
export { withVident };
|
package/dist/next.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
type NextConfig =
|
|
1
|
+
type NextConfig = {
|
|
2
2
|
productionBrowserSourceMaps?: boolean;
|
|
3
3
|
env?: Record<string, string>;
|
|
4
|
+
[key: string]: unknown;
|
|
4
5
|
};
|
|
5
|
-
declare function withVident(nextConfig?:
|
|
6
|
+
declare function withVident<T extends NextConfig>(nextConfig?: T): T;
|
|
6
7
|
|
|
7
8
|
export { withVident };
|
package/dist/next.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/next.ts"],"sourcesContent":["import { execSync } from \"node:child_process\"\n\ntype NextConfig =
|
|
1
|
+
{"version":3,"sources":["../src/next.ts"],"sourcesContent":["import { execSync } from \"node:child_process\"\n\ntype NextConfig = {\n\tproductionBrowserSourceMaps?: boolean\n\tenv?: Record<string, string>\n\t[key: string]: unknown\n}\n\nfunction detectRelease(): string | undefined {\n\tif (process.env.VIDENT_RELEASE) return process.env.VIDENT_RELEASE\n\tif (process.env.VERCEL_GIT_COMMIT_SHA)\n\t\treturn process.env.VERCEL_GIT_COMMIT_SHA\n\ttry {\n\t\treturn execSync(\"git rev-parse HEAD\", { encoding: \"utf-8\" }).trim()\n\t} catch {\n\t\treturn undefined\n\t}\n}\n\nexport function withVident<T extends NextConfig>(nextConfig: T = {} as T): T {\n\tconst release = detectRelease()\n\n\treturn {\n\t\t...nextConfig,\n\t\tproductionBrowserSourceMaps: true,\n\t\tenv: {\n\t\t\t...nextConfig.env,\n\t\t\t...(release ? { NEXT_PUBLIC_VIDENT_RELEASE: release } : {}),\n\t\t},\n\t}\n}\n"],"mappings":";AAAA,SAAS,gBAAgB;AAQzB,SAAS,gBAAoC;AAC5C,MAAI,QAAQ,IAAI,eAAgB,QAAO,QAAQ,IAAI;AACnD,MAAI,QAAQ,IAAI;AACf,WAAO,QAAQ,IAAI;AACpB,MAAI;AACH,WAAO,SAAS,sBAAsB,EAAE,UAAU,QAAQ,CAAC,EAAE,KAAK;AAAA,EACnE,QAAQ;AACP,WAAO;AAAA,EACR;AACD;AAEO,SAAS,WAAiC,aAAgB,CAAC,GAAW;AAC5E,QAAM,UAAU,cAAc;AAE9B,SAAO;AAAA,IACN,GAAG;AAAA,IACH,6BAA6B;AAAA,IAC7B,KAAK;AAAA,MACJ,GAAG,WAAW;AAAA,MACd,GAAI,UAAU,EAAE,4BAA4B,QAAQ,IAAI,CAAC;AAAA,IAC1D;AAAA,EACD;AACD;","names":[]}
|