Socket
Socket
Sign inDemoInstall

@aem-vite/import-rewriter

Package Overview
Dependencies
168
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 8.0.0

lib/index.d.mts

10

lib/index.js

@@ -21,2 +21,6 @@ "use strict";

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -55,3 +59,3 @@ mod

function isOutputChunk(assetOrChunk) {
return typeof assetOrChunk.imports !== void 0;
return Array.isArray(assetOrChunk.imports);
}

@@ -151,3 +155,3 @@ function generateChecksum(source) {

} catch (e) {
this.error(e, e.idx);
this.error({ ...e });
}

@@ -189,3 +193,3 @@ if (!imports.length) {

} catch (e) {
this.error(e, e.idx);
this.error({ ...e });
}

@@ -192,0 +196,0 @@ if (!imports.length) {

@@ -14,5 +14,6 @@ {

},
"version": "7.0.0",
"version": "8.0.0",
"engines": {
"node": ">= 14"
"node": ">= 16",
"pnpm": ">= 8.5"
},

@@ -45,4 +46,4 @@ "keywords": [

"clean": "rimraf lib/*",
"dev": "yarn bundle --watch",
"build": "yarn clean && yarn bundle",
"dev": "pnpm bundle --watch",
"build": "pnpm clean && pnpm bundle",
"bundle": "tsup src/index.ts --sourcemap --dts --format cjs,esm --outDir lib",

@@ -67,28 +68,31 @@ "lint": "eslint --ext .ts src/**",

"debug": "^4.3.4",
"es-module-lexer": "^1.1.0",
"magic-string": "^0.26.7",
"es-module-lexer": "^1.3.0",
"magic-string": "^0.30.1",
"rollup": "^3.26.2",
"rollup-pluginutils": "^2.8.2",
"vite": "^2.9.15"
"vite": "^4.4.4"
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@semantic-release/changelog": "^6.0.2",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/debug": "^4.1.7",
"@types/node": "^14.18.33",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"@types/debug": "^4.1.8",
"@types/node": "^16.18.38",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"prettier": "^2.8.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"semantic-release": "^19.0.5",
"tsup": "^6.5.0",
"typescript": "^4.9.3"
"tsup": "^7.1.0",
"typescript": "^5.1.6"
},
"peerDependencies": {
"vite": "^2.6.0 || ^3.0.0"
"rollup": "^2.0.0 || ^3.0.0",
"vite": "^3.0.0 || ^4.0.0"
},

@@ -95,0 +99,0 @@ "optionalDependencies": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc