@parca/utilities
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.0.15](https://github.com/parca-dev/parca/compare/@parca/utilities@0.0.9...@parca/utilities@0.0.15) (2023-07-03) | ||
**Note:** Version bump only for package @parca/utilities | ||
## [0.0.14](https://github.com/parca-dev/parca/compare/@parca/utilities@0.0.13...@parca/utilities@0.0.14) (2023-06-28) | ||
@@ -8,0 +12,0 @@ |
@@ -12,3 +12,3 @@ import { Label } from '@parca/client'; | ||
export declare const valueFormatter: (num: bigint | number, unit: string, digits: number) => string; | ||
export declare const isDevMode: () => boolean; | ||
export declare const isDevModeOrPreview: () => boolean; | ||
export declare const getLastItem: (thePath: string | undefined) => string | undefined; | ||
@@ -15,0 +15,0 @@ export declare const parseParams: (querystring: string) => Record<string, string | string[] | undefined>; |
@@ -67,4 +67,4 @@ // Copyright 2022 The Parca Authors | ||
}; | ||
export const isDevMode = () => { | ||
return process.env.NODE_ENV === 'development'; | ||
export const isDevModeOrPreview = () => { | ||
return process.env.NODE_ENV === 'development' || process.env.REACT_APP_VERCEL_ENV === 'preview'; | ||
}; | ||
@@ -71,0 +71,0 @@ export const getLastItem = (thePath) => { |
{ | ||
"name": "@parca/utilities", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "A set of reusable functions for Parca", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "ed527a21f4625c0ac02747924db8cf1f6891c39c" | ||
"gitHead": "6fb652a4800d7a5263b4af5a0eec2b9bc0f86658" | ||
} |
@@ -96,4 +96,4 @@ // Copyright 2022 The Parca Authors | ||
export const isDevMode = (): boolean => { | ||
return process.env.NODE_ENV === 'development'; | ||
export const isDevModeOrPreview = (): boolean => { | ||
return process.env.NODE_ENV === 'development' || process.env.REACT_APP_VERCEL_ENV === 'preview'; | ||
}; | ||
@@ -100,0 +100,0 @@ export const getLastItem = (thePath: string | undefined): string | undefined => { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
69196
3