Socket
Socket
Sign inDemoInstall

@pkgr/utils

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pkgr/utils - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

4

lib/browser.js
// based on https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js
import { execSync } from 'child_process';
import path from 'path';
import { fileURLToPath } from 'url';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import spawn from 'cross-spawn';

@@ -6,0 +6,0 @@ import open from 'open';

@@ -11,4 +11,4 @@ var _a;

export const cjsRequire = typeof require === 'undefined' ? createRequire(import.meta.url) : require;
// eslint-disable-next-line node/no-deprecated-api, sonar/deprecation
// eslint-disable-next-line n/no-deprecated-api, sonar/deprecation
export const EXTENSIONS = ['.ts', '.tsx', ...Object.keys(cjsRequire.extensions)];
//# sourceMappingURL=constants.js.map

@@ -1,3 +0,3 @@

import fs from 'fs';
import path from 'path';
import fs from 'node:fs';
import path from 'node:path';
import isGlob from 'is-glob';

@@ -20,4 +20,5 @@ import { CWD, EXTENSIONS, cjsRequire } from './constants.js';

export const isTsAvailable = isPkgAvailable('typescript');
export const isAngularAvailable = isPkgAvailable('@angular/core');
export const isMdxAvailable = isPkgAvailable('@mdx/mdx') || isPkgAvailable('@mdx/react');
export const isAngularAvailable = isPkgAvailable('@angular/core/package.json');
export const isMdxAvailable = isPkgAvailable('@mdx-js/mdx/package.json') ||
isPkgAvailable('@mdx-js/react/package.json');
export const isReactAvailable = isPkgAvailable('react');

@@ -24,0 +25,0 @@ export const isSvelteAvailable = isPkgAvailable('svelte');

var _a, _b, _c, _d;
import path from 'path';
import path from 'node:path';
import { tryGlob, tryRequirePkg } from './helpers.js';

@@ -4,0 +4,0 @@ const pkg = (_a = tryRequirePkg(path.resolve('package.json'))) !== null && _a !== void 0 ? _a : {};

{
"name": "@pkgr/utils",
"version": "2.1.0",
"version": "2.2.0",
"type": "module",

@@ -16,6 +16,7 @@ "description": "Shared utils for `@pkgr` packages or any package else",

"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs"
},
"types": "lib",
"types": "./lib/index.d.ts",
"files": [

@@ -31,3 +32,3 @@ "lib",

"tiny-glob": "^0.2.9",
"tslib": "^2.3.1"
"tslib": "^2.4.0"
},

@@ -34,0 +35,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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