Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@pkgr/core

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pkgr/core - npm Package Compare versions

Comparing version
0.3.5
to
0.3.6
+6
-1
lib/constants.js
import { createRequire } from 'node:module';
export const cjsRequire = typeof require === 'function' ? require : createRequire(import.meta.url);
export const EXTENSIONS = ['.ts', '.tsx', ...Object.keys(cjsRequire.extensions)];
const DEFAULT_EXTENSIONS = cjsRequire.extensions
?
Object.keys(cjsRequire.extensions)
:
['.js', '.json', '.node'];
export const EXTENSIONS = ['.ts', '.tsx', ...DEFAULT_EXTENSIONS];
//# sourceMappingURL=constants.js.map
+1
-1

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

{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAM3C,MAAM,CAAC,MAAM,UAAU,GACrB,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAG1E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA"}
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAM3C,MAAM,CAAC,MAAM,UAAU,GACrB,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAG1E,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU;IAC9C,CAAC;QACC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IACpC,CAAC;QACC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAE7B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,kBAAkB,CAAC,CAAA"}

@@ -9,3 +9,10 @@ 'use strict';

const cjsRequire = typeof require === "function" ? require : node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
const EXTENSIONS = [".ts", ".tsx", ...Object.keys(cjsRequire.extensions)];
const DEFAULT_EXTENSIONS = cjsRequire.extensions ? (
// eslint-disable-next-line sonarjs/deprecation
Object.keys(cjsRequire.extensions)
) : (
// `require.extensions` could be `undefined` - #430
[".js", ".json", ".node"]
);
const EXTENSIONS = [".ts", ".tsx", ...DEFAULT_EXTENSIONS];

@@ -12,0 +19,0 @@ const tryPkg = (pkg) => {

{
"name": "@pkgr/core",
"version": "0.3.5",
"version": "0.3.6",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Shared core module for `@pkgr` packages or any package else",