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

rollup

Package Overview
Dependencies
Maintainers
5
Versions
853
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

dist/es/getLogFilter.js
/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

@@ -1,258 +0,54 @@

/* tslint:disable */
/* eslint-disable */
/* prettier-ignore */
const { existsSync } = require('node:fs');
const { join } = require('node:path');
const { platform, arch, report } = require('node:process');
/* auto-generated by NAPI-RS */
const isMusl = () => !report.getReport().header.glibcVersionRuntime;
const { existsSync, readFileSync } = require('fs')
const { join } = require('path')
const bindingsByPlatformAndArch = {
android: {
arm: { base: 'android-arm-eabi' },
arm64: { base: 'android-arm64' }
},
darwin: {
arm64: { base: 'darwin-arm64' },
x64: { base: 'darwin-x64' }
},
linux: {
arm: { base: 'linux-arm-gnueabihf' },
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
},
win32: {
arm64: { base: 'win32-arm64-msvc' },
ia32: { base: 'win32-ia32-msvc' },
x64: { base: 'win32-x64-msvc' }
}
};
const { platform, arch } = process
const imported = bindingsByPlatformAndArch[platform]?.[arch];
if (!imported) {
throw new Error(
`Your current platform "${platform}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
let nativeBinding = null
let localFileExisted = false
let loadError = null
The following platform-architecture combinations are supported:
${Object.entries(bindingsByPlatformAndArch)
.flatMap(([platformName, architectures]) =>
Object.entries(architectures).flatMap(([architectureName, { musl }]) => {
const name = `${platformName}-${architectureName}`;
return musl ? [name, `${name} (musl)`] : [name];
})
)
.join('\n')}
function isMusl() {
// For Node 10
if (!process.report || typeof process.report.getReport !== 'function') {
try {
const lddPath = require('child_process').execSync('which ldd').toString().trim()
return readFileSync(lddPath, 'utf8').includes('musl')
} catch (e) {
return true
}
} else {
const { glibcVersionRuntime } = process.report.getReport().header
return !glibcVersionRuntime
}
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`
);
}
switch (platform) {
case 'android':
switch (arch) {
case 'arm64':
localFileExisted = existsSync(join(__dirname, 'rollup.android-arm64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./rollup.android-arm64.node')
} else {
nativeBinding = require('@rollup/rollup-android-arm64')
}
} catch (e) {
loadError = e
}
break
case 'arm':
localFileExisted = existsSync(join(__dirname, 'rollup.android-arm-eabi.node'))
try {
if (localFileExisted) {
nativeBinding = require('./rollup.android-arm-eabi.node')
} else {
nativeBinding = require('@rollup/rollup-android-arm-eabi')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Android ${arch}`)
}
break
case 'win32':
switch (arch) {
case 'x64':
localFileExisted = existsSync(
join(__dirname, 'rollup.win32-x64-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.win32-x64-msvc.node')
} else {
nativeBinding = require('@rollup/rollup-win32-x64-msvc')
}
} catch (e) {
loadError = e
}
break
case 'ia32':
localFileExisted = existsSync(
join(__dirname, 'rollup.win32-ia32-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.win32-ia32-msvc.node')
} else {
nativeBinding = require('@rollup/rollup-win32-ia32-msvc')
}
} catch (e) {
loadError = e
}
break
case 'arm64':
localFileExisted = existsSync(
join(__dirname, 'rollup.win32-arm64-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.win32-arm64-msvc.node')
} else {
nativeBinding = require('@rollup/rollup-win32-arm64-msvc')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Windows: ${arch}`)
}
break
case 'darwin':
localFileExisted = existsSync(join(__dirname, 'rollup.darwin-universal.node'))
try {
if (localFileExisted) {
nativeBinding = require('./rollup.darwin-universal.node')
} else {
nativeBinding = require('@rollup/rollup-darwin-universal')
}
break
} catch {}
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, 'rollup.darwin-x64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./rollup.darwin-x64.node')
} else {
nativeBinding = require('@rollup/rollup-darwin-x64')
}
} catch (e) {
loadError = e
}
break
case 'arm64':
localFileExisted = existsSync(
join(__dirname, 'rollup.darwin-arm64.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.darwin-arm64.node')
} else {
nativeBinding = require('@rollup/rollup-darwin-arm64')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on macOS: ${arch}`)
}
break
case 'freebsd':
if (arch !== 'x64') {
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
}
localFileExisted = existsSync(join(__dirname, 'rollup.freebsd-x64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./rollup.freebsd-x64.node')
} else {
nativeBinding = require('@rollup/rollup-freebsd-x64')
}
} catch (e) {
loadError = e
}
break
case 'linux':
switch (arch) {
case 'x64':
if (isMusl()) {
localFileExisted = existsSync(
join(__dirname, 'rollup.linux-x64-musl.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.linux-x64-musl.node')
} else {
nativeBinding = require('@rollup/rollup-linux-x64-musl')
}
} catch (e) {
loadError = e
}
} else {
localFileExisted = existsSync(
join(__dirname, 'rollup.linux-x64-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.linux-x64-gnu.node')
} else {
nativeBinding = require('@rollup/rollup-linux-x64-gnu')
}
} catch (e) {
loadError = e
}
}
break
case 'arm64':
if (isMusl()) {
localFileExisted = existsSync(
join(__dirname, 'rollup.linux-arm64-musl.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.linux-arm64-musl.node')
} else {
nativeBinding = require('@rollup/rollup-linux-arm64-musl')
}
} catch (e) {
loadError = e
}
} else {
localFileExisted = existsSync(
join(__dirname, 'rollup.linux-arm64-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.linux-arm64-gnu.node')
} else {
nativeBinding = require('@rollup/rollup-linux-arm64-gnu')
}
} catch (e) {
loadError = e
}
}
break
case 'arm':
localFileExisted = existsSync(
join(__dirname, 'rollup.linux-arm-gnueabihf.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./rollup.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('@rollup/rollup-linux-arm-gnueabihf')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Linux: ${arch}`)
}
break
default:
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)
}
const packageBase = imported.musl && isMusl() ? imported.musl : imported.base;
const localName = `./rollup.${packageBase}.node`;
const { parse, xxhashBase64Url } = require(
existsSync(join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
);
if (!nativeBinding) {
if (loadError) {
throw loadError
}
throw new Error(`Failed to load native binding`)
}
const { parse, xxhashBase64Url } = nativeBinding
module.exports.parse = parse
module.exports.xxhashBase64Url = xxhashBase64Url
module.exports.parse = parse;
module.exports.xxhashBase64Url = xxhashBase64Url;
/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0
Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
Rollup.js v4.0.1
Fri, 06 Oct 2023 12:35:45 GMT - commit fcab1f610fefb24621ce001dfb0831dd30e59ab3

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

{
"name": "rollup",
"version": "4.0.0",
"version": "4.0.1",
"description": "Next-generation ES module bundler",

@@ -23,2 +23,3 @@ "main": "dist/rollup.js",

"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"armv7-linux-androideabi",

@@ -37,3 +38,3 @@ "armv7-unknown-linux-gnueabihf",

"build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
"build:napi": "napi build --platform --dts native.d.ts --js native.js --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
"build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
"build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",

@@ -103,13 +104,14 @@ "build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",

"fsevents": "~2.3.2",
"@rollup/rollup-darwin-arm64": "4.0.0",
"@rollup/rollup-android-arm64": "4.0.0",
"@rollup/rollup-win32-arm64-msvc": "4.0.0",
"@rollup/rollup-linux-arm64-gnu": "4.0.0",
"@rollup/rollup-android-arm-eabi": "4.0.0",
"@rollup/rollup-linux-arm-gnueabihf": "4.0.0",
"@rollup/rollup-win32-ia32-msvc": "4.0.0",
"@rollup/rollup-darwin-x64": "4.0.0",
"@rollup/rollup-win32-x64-msvc": "4.0.0",
"@rollup/rollup-linux-x64-gnu": "4.0.0",
"@rollup/rollup-linux-x64-musl": "4.0.0"
"@rollup/rollup-darwin-arm64": "4.0.1",
"@rollup/rollup-android-arm64": "4.0.1",
"@rollup/rollup-win32-arm64-msvc": "4.0.1",
"@rollup/rollup-linux-arm64-gnu": "4.0.1",
"@rollup/rollup-linux-arm64-musl": "4.0.1",
"@rollup/rollup-android-arm-eabi": "4.0.1",
"@rollup/rollup-linux-arm-gnueabihf": "4.0.1",
"@rollup/rollup-win32-ia32-msvc": "4.0.1",
"@rollup/rollup-darwin-x64": "4.0.1",
"@rollup/rollup-win32-x64-msvc": "4.0.1",
"@rollup/rollup-linux-x64-gnu": "4.0.1",
"@rollup/rollup-linux-x64-musl": "4.0.1"
},

@@ -116,0 +118,0 @@ "devDependenciesComments": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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