@boost/internal
Advanced tools
Comparing version 4.0.1 to 5.0.0-alpha.1
@@ -64,4 +64,5 @@ // Bundled with Packemon: https://packemon.dev | ||
envVars = process.env; | ||
} else if (global.window !== undefined) { | ||
} else if ('window' in global && global.window !== undefined) { | ||
// @ts-expect-error Allow type mismatch | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
envVars = window; | ||
@@ -68,0 +69,0 @@ } |
{ | ||
"name": "@boost/internal", | ||
"version": "4.0.1", | ||
"type": "commonjs", | ||
"version": "5.0.0-alpha.1", | ||
"type": "module", | ||
"release": "1651512176170", | ||
@@ -11,16 +11,12 @@ "description": "Boost internals.", | ||
], | ||
"main": "./cjs/index.cjs", | ||
"browser": "./lib/index.js", | ||
"main": "./mjs/index.mjs", | ||
"module": "./esm/index.js", | ||
"types": "./dts/index.d.ts", | ||
"types": "./mjs/index.d.ts", | ||
"files": [ | ||
"cjs/**/*.{cjs,mjs,map}", | ||
"dts/**/*.d.ts", | ||
"esm/**/*.{js,map}", | ||
"lib/**/*.{js,map}", | ||
"src/**/*.{ts,tsx,json}" | ||
"esm/**/*", | ||
"mjs/**/*", | ||
"src/**/*" | ||
], | ||
"engines": { | ||
"node": ">=14.15.0", | ||
"npm": ">=6.14.0" | ||
"node": ">=16.12.0" | ||
}, | ||
@@ -48,7 +44,10 @@ "repository": { | ||
"format": "esm", | ||
"platform": "browser" | ||
"platform": "browser", | ||
"inputs": { | ||
"index": "src/browser.ts" | ||
} | ||
}, | ||
{ | ||
"api": "private", | ||
"format": "cjs", | ||
"format": "mjs", | ||
"platform": "node" | ||
@@ -60,16 +59,14 @@ } | ||
".": { | ||
"types": "./dts/index.d.ts", | ||
"browser": { | ||
"types": "./esm/browser.d.ts", | ||
"module": "./esm/index.js", | ||
"import": "./esm/index.js", | ||
"default": "./lib/index.js" | ||
"import": "./esm/index.js" | ||
}, | ||
"node": { | ||
"import": "./cjs/index-wrapper.mjs", | ||
"require": "./cjs/index.cjs" | ||
}, | ||
"default": "./lib/index.js" | ||
"types": "./mjs/index.d.ts", | ||
"import": "./mjs/index.mjs" | ||
} | ||
} | ||
}, | ||
"gitHead": "fd64842195c9e1c72e726800f004bdc80fa682f8" | ||
"gitHead": "8fd0f41cca47f7b6ce605eaca5cb2b4932fc89a5" | ||
} |
# Boost Internals | ||
![build status](https://img.shields.io/github/workflow/status/milesj/boost/Build) | ||
![build status](https://img.shields.io/github/actions/workflow/status/milesj/boost/build.yml) | ||
![npm version](https://img.shields.io/npm/v/@boost/internal) | ||
Internal utilities for Boost packages. This should rarely be used directly. |
@@ -1,2 +0,2 @@ | ||
import debug, { Debugger } from 'debug'; | ||
import debug, { type Debugger } from 'debug'; | ||
@@ -3,0 +3,0 @@ export function sentenceCase(value: unknown): string { |
@@ -5,4 +5,5 @@ let envVars: Record<string, unknown> = {}; | ||
envVars = process.env; | ||
} else if (global.window !== undefined) { | ||
} else if ('window' in global && global.window !== undefined) { | ||
// @ts-expect-error Allow type mismatch | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
envVars = window; | ||
@@ -9,0 +10,0 @@ } |
@@ -6,5 +6,4 @@ /** | ||
export * from './color'; | ||
export * from './createInternalDebugger'; | ||
export * from './createScopedError'; | ||
export * from './env'; | ||
export * from './browser'; | ||
export * from './importAbsoluteModule'; | ||
export * from './interopDefault'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62
2
Yes
29163
408
2
1