@app-config/utils
Advanced tools
Comparing version
@@ -5,2 +5,3 @@ export declare const isBrowser: boolean; | ||
export declare const packageNameRegex: RegExp; | ||
export declare const appConfigImportRegex: RegExp; | ||
export declare type JsonPrimitive = number | string | boolean | null; | ||
@@ -7,0 +8,0 @@ export interface JsonObject { |
@@ -5,2 +5,3 @@ export const isBrowser = typeof window === 'object' && typeof document === 'object' && document.nodeType === 9; | ||
export const packageNameRegex = /(^@(lcdev|servall)\/app-config)|(^@app-config\/main)|(\.?app-config(\.\w+)?\.(toml|yml|yaml|json|json5))|(\.config-placeholder)/; | ||
export const appConfigImportRegex = /(app-config|app-config-main|@app-config\/main)\/dist(\/es)?\/index\.js/; | ||
export function isObject(obj) { | ||
@@ -7,0 +8,0 @@ return typeof obj === 'object' && !Array.isArray(obj) && obj !== null; |
@@ -5,2 +5,3 @@ export declare const isBrowser: boolean; | ||
export declare const packageNameRegex: RegExp; | ||
export declare const appConfigImportRegex: RegExp; | ||
export declare type JsonPrimitive = number | string | boolean | null; | ||
@@ -7,0 +8,0 @@ export interface JsonObject { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateModuleText = exports.isPrimitive = exports.isObject = exports.packageNameRegex = exports.isWindows = exports.isNode = exports.isBrowser = void 0; | ||
exports.generateModuleText = exports.isPrimitive = exports.isObject = exports.appConfigImportRegex = exports.packageNameRegex = exports.isWindows = exports.isNode = exports.isBrowser = void 0; | ||
exports.isBrowser = typeof window === 'object' && typeof document === 'object' && document.nodeType === 9; | ||
@@ -8,2 +8,3 @@ exports.isNode = typeof process !== 'undefined' && !exports.isBrowser; | ||
exports.packageNameRegex = /(^@(lcdev|servall)\/app-config)|(^@app-config\/main)|(\.?app-config(\.\w+)?\.(toml|yml|yaml|json|json5))|(\.config-placeholder)/; | ||
exports.appConfigImportRegex = /(app-config|app-config-main|@app-config\/main)\/dist(\/es)?\/index\.js/; | ||
function isObject(obj) { | ||
@@ -10,0 +11,0 @@ return typeof obj === 'object' && !Array.isArray(obj) && obj !== null; |
{ | ||
"name": "@app-config/utils", | ||
"description": "Common utilities used in @app-config", | ||
"version": "2.8.1", | ||
"version": "2.8.2", | ||
"license": "MPL-2.0", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13911
3.19%220
1.85%