Socket
Socket
Sign inDemoInstall

@parca/utilities

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parca/utilities - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

4

CHANGELOG.md

@@ -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 @@

2

dist/index.d.ts

@@ -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 => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc