New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

import-sync

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-sync - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

4

dist/cjs/files.js

@@ -27,5 +27,3 @@ "use strict";

/* istanbul ignore next */
return path_1.default.dirname(callerFilePath.startsWith('file://')
? callerFilePath.substring(7)
: callerFilePath);
return path_1.default.dirname(callerFilePath.startsWith('file://') ? callerFilePath.substring(7) : callerFilePath);
};

@@ -32,0 +30,0 @@ exports.getCallerDirname = getCallerDirname;

@@ -23,3 +23,3 @@ "use strict";

Failed to import from:
${modulePath}.
${modulePath}
Options:

@@ -50,2 +50,3 @@ ${JSON.stringify(options)}

try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const basicModule = require(modulePath);

@@ -57,3 +58,3 @@ /* istanbul ignore next */

}
catch (error) {
catch (_error) {
/* nothing to do */

@@ -60,0 +61,0 @@ }

@@ -21,5 +21,3 @@ import fs from 'fs';

/* istanbul ignore next */
return path.dirname(callerFilePath.startsWith('file://')
? callerFilePath.substring(7)
: callerFilePath);
return path.dirname(callerFilePath.startsWith('file://') ? callerFilePath.substring(7) : callerFilePath);
};

@@ -26,0 +24,0 @@ /**

@@ -18,3 +18,3 @@ import esm from '@httptoolkit/esm';

Failed to import from:
${modulePath}.
${modulePath}
Options:

@@ -45,2 +45,3 @@ ${JSON.stringify(options)}

try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const basicModule = require(modulePath);

@@ -52,3 +53,3 @@ /* istanbul ignore next */

}
catch (error) {
catch (_error) {
/* nothing to do */

@@ -55,0 +56,0 @@ }

@@ -7,3 +7,3 @@ {

},
"version": "2.2.2",
"version": "2.2.3",
"files": [

@@ -14,13 +14,2 @@ "dist"

"module": "dist/esm/index.js",
"scripts": {
"test": "jest",
"tc": "jest --coverage",
"lint": "eslint --fix './**/*.ts'",
"tsc": "tsc --noEmit",
"build": "rm -rf dist && npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module CommonJS --outDir dist/cjs",
"prepublishOnly": "npm run build",
"prepare": "husky install"
},
"keywords": [

@@ -47,21 +36,37 @@ "ecmascript",

"devDependencies": {
"@commitlint/cli": "^19.1.0",
"@commitlint/config-conventional": "^19.1.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@types/httptoolkit__esm": "^3.3.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.27",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"eslint-plugin-jest": "^27.9.0",
"husky": "^9.0.11",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"node-datachannel": "^0.23.0",
"node-fetch": "^3.3.2",
"ts-jest": "^29.1.2",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.2"
"typescript": "^5.7.2"
},
"dependencies": {
"@httptoolkit/esm": "^3.3.0"
"@httptoolkit/esm": "^3.3.1"
},
"scripts": {
"test": "jest",
"tc": "jest --coverage",
"lint": "eslint --fix './**/*.ts'",
"tsc": "tsc --noEmit",
"build": "rm -rf dist && npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module CommonJS --outDir dist/cjs"
}
}
}

@@ -72,2 +72,4 @@ <div align="center">

- [5.3. Result](#53-result)
- [6. Major Changes](#6-major-changes)
- [6.1. 2023-12-16](#61-2023-12-16)

@@ -253,2 +255,4 @@ ## 1. Installation

> Please note that loading [ECMAScript Modules using require()](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require) are soon to be supported in NodeJS natively.
### 5.1. Idea

@@ -318,1 +322,12 @@

- https://stackoverflow.com/a/77329422/22324694
---
## 6. Major Changes
### 6.1. 2023-12-16
As of version 2.2.0, **import-sync** has switched from using the archived [esm](https://github.com/standard-things/esm) package to the fork [@httptoolkit/esm](https://github.com/httptoolkit/esm). For further details, please see
- issue [#37](https://github.com/nktnet1/import-sync/issues/37)
- merge request [#38](https://github.com/nktnet1/import-sync/pull/38)

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