@@ -11,12 +11,12 @@ import * as storage from './storage.js'
1111import * as f from './function.js'
1212
1313/* c8 ignore next */
14- export const isNode = /*@__PURE__ */ ( ( ) => typeof process !== 'undefined' && process . release && / n o d e | i o \. j s / . test ( process . release . name ) && Object . prototype . toString . call ( typeof process !== 'undefined' ? process : 0 ) === '[object process]' ) ( )
14+ export const isNode = /* @__PURE__ */ ( ( ) => typeof process !== 'undefined' && process . release && / n o d e | i o \. j s / . test ( process . release . name ) && Object . prototype . toString . call ( typeof process !== 'undefined' ? process : 0 ) === '[object process]' ) ( )
1515
1616/* c8 ignore next */
17- export const isBrowser = /*@__PURE__ */ ( ( ) => typeof window !== 'undefined' && typeof document !== 'undefined' && ! isNode ) ( )
17+ export const isBrowser = /* @__PURE__ */ ( ( ) => typeof window !== 'undefined' && typeof document !== 'undefined' && ! isNode ) ( )
1818/* c8 ignore next */
19- export const isMac = /*@__PURE__ */ ( ( ) => typeof navigator !== 'undefined' ? / M a c / . test ( navigator . platform ) : false ) ( )
19+ export const isMac = /* @__PURE__ */ ( ( ) => typeof navigator !== 'undefined' ? / M a c / . test ( navigator . platform ) : false ) ( )
2020
2121/**
2222 * @type {Map<string,string> }
@@ -25,7 +25,7 @@ let params
2525const args = [ ]
2626
2727/* c8 ignore start */
28- /*@__NO_SIDE_EFFECTS__ */
28+ /* @__NO_SIDE_EFFECTS__ */
2929const computeParams = ( ) => {
3030 if ( params === undefined ) {
3131 if ( isNode ) {
@@ -74,7 +74,7 @@ const computeParams = () => {
7474 * @return {boolean }
7575 */
7676/* c8 ignore next */
77- /*@__NO_SIDE_EFFECTS__ */
77+ /* @__NO_SIDE_EFFECTS__ */
7878export const hasParam = ( name ) => computeParams ( ) . has ( name )
7979
8080/**
@@ -83,7 +83,7 @@ export const hasParam = (name) => computeParams().has(name)
8383 * @return {string }
8484 */
8585/* c8 ignore next 2 */
86- /*@__NO_SIDE_EFFECTS__ */
86+ /* @__NO_SIDE_EFFECTS__ */
8787export const getParam = ( name , defaultVal ) =>
8888 computeParams ( ) . get ( name ) || defaultVal
8989
@@ -92,7 +92,7 @@ export const getParam = (name, defaultVal) =>
9292 * @return {string|null }
9393 */
9494/* c8 ignore next 4 */
95- /*@__NO_SIDE_EFFECTS__ */
95+ /* @__NO_SIDE_EFFECTS__ */
9696export const getVariable = ( name ) =>
9797 isNode
9898 ? conditions . undefinedToNull ( process . env [ name . toUpperCase ( ) . replaceAll ( '-' , '_' ) ] )
@@ -103,15 +103,15 @@ export const getVariable = (name) =>
103103 * @return {string|null }
104104 */
105105/* c8 ignore next 2 */
106- /*@__NO_SIDE_EFFECTS__ */
106+ /* @__NO_SIDE_EFFECTS__ */
107107export const getConf = ( name ) => computeParams ( ) . get ( '--' + name ) || getVariable ( name )
108108
109109/**
110110 * @param {string } name
111111 * @return {string }
112112 */
113113/* c8 ignore start */
114- /*@__NO_SIDE_EFFECTS__ */
114+ /* @__NO_SIDE_EFFECTS__ */
115115export const ensureConf = ( name ) => {
116116 const c = getConf ( name )
117117 if ( c == null ) throw new Error ( `Expected configuration "${ name . toUpperCase ( ) . replaceAll ( '-' , '_' ) } "` )
@@ -124,15 +124,15 @@ export const ensureConf = (name) => {
124124 * @return {boolean }
125125 */
126126/* c8 ignore next 2 */
127- /*@__NO_SIDE_EFFECTS__ */
127+ /* @__NO_SIDE_EFFECTS__ */
128128export const hasConf = ( name ) =>
129129 hasParam ( '--' + name ) || getVariable ( name ) !== null
130130
131131/* c8 ignore next */
132- export const production = /*@__PURE__ */ ( ( ) => hasConf ( 'production' ) ) ( )
132+ export const production = /* @__PURE__ */ ( ( ) => hasConf ( 'production' ) ) ( )
133133
134134/* c8 ignore next 2 */
135- const forceColor = /*@__PURE__ */ ( ( ) => isNode && f . isOneOf ( process . env . FORCE_COLOR , [ 'true' , '1' , '2' ] ) ) ( )
135+ const forceColor = /* @__PURE__ */ ( ( ) => isNode && f . isOneOf ( process . env . FORCE_COLOR , [ 'true' , '1' , '2' ] ) ) ( )
136136
137137/* c8 ignore start */
138138/**
@@ -142,7 +142,7 @@ const forceColor = /*@__PURE__*/(()=>isNode && f.isOneOf(process.env.FORCE_COLOR
142142 * Disable color using `--no-color` parameter or using `NO_COLOR=1` environment variable.
143143 * `FORCE_COLOR=1` enables color and takes precedence over all.
144144 */
145- export const supportsColor = /*@__PURE__ */ ( ( ) => forceColor || (
145+ export const supportsColor = /* @__PURE__ */ ( ( ) => forceColor || (
146146 ! hasParam ( '--no-colors' ) && // @todo deprecate --no-colors
147147 ! hasConf ( 'no-color' ) &&
148148 ( ! isNode || process . stdout . isTTY ) && (
@@ -155,7 +155,7 @@ export const supportsColor = /*@__PURE__*/(()=>forceColor || (
155155/* c8 ignore stop */
156156
157157/* c8 ignore start */
158- const globalScope = /*@__PURE__ */ ( ( ) => /** @type {any } */ ( typeof globalThis !== 'undefined'
158+ const globalScope = /* @__PURE__ */ ( ( ) => /** @type {any } */ ( typeof globalThis !== 'undefined'
159159 ? globalThis
160160 : typeof window !== 'undefined'
161161 ? window
0 commit comments