Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

siroc

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siroc - npm Package Compare versions

Comparing version 0.11.1 to 0.12.0

15

bin/cli.js

@@ -752,2 +752,9 @@ #!/usr/bin/env node

const __NODE_ENV__ = process.env.NODE_ENV
function regexpForPackage(name) {
name = name.replace(/[\\/]/g, '[\\\\/]')
return new RegExp(`(^|node_modules[\\\\/])${name}([\\\\/]|$)`, 'i')
}
function regexpForPackages(packages) {
return Object.keys(packages || {}).map(regexpForPackage)
}
function getRollupConfig(_a, pkg = new Package(), override) {

@@ -791,5 +798,5 @@ var _b = _a,

const external = [
...Object.keys(pkgConfig.dependencies || {}),
...Object.keys(pkgConfig.optionalDependencies || {}),
...Object.keys(pkgConfig.peerDependencies || {}),
...regexpForPackages(pkgConfig.dependencies),
...regexpForPackages(pkgConfig.optionalDependencies),
...regexpForPackages(pkgConfig.peerDependencies),
...builtins,

@@ -1172,3 +1179,3 @@ ...externals,

var version = '0.11.1'
var version = '0.12.0'

@@ -1175,0 +1182,0 @@ var __defProp$1 = Object.defineProperty

@@ -759,2 +759,9 @@ #!/usr/bin/env node

const __NODE_ENV__ = process.env.NODE_ENV
function regexpForPackage(name) {
name = name.replace(/[\\/]/g, '[\\\\/]')
return new RegExp(`(^|node_modules[\\\\/])${name}([\\\\/]|$)`, 'i')
}
function regexpForPackages(packages) {
return Object.keys(packages || {}).map(regexpForPackage)
}
function getRollupConfig(_a, pkg = new Package(), override) {

@@ -798,5 +805,5 @@ var _b = _a,

const external = [
...Object.keys(pkgConfig.dependencies || {}),
...Object.keys(pkgConfig.optionalDependencies || {}),
...Object.keys(pkgConfig.peerDependencies || {}),
...regexpForPackages(pkgConfig.dependencies),
...regexpForPackages(pkgConfig.optionalDependencies),
...regexpForPackages(pkgConfig.peerDependencies),
...builtins,

@@ -1190,2 +1197,3 @@ ...externals,

exports.logRollupConfig = logRollupConfig
exports.regexpForPackage = regexpForPackage
exports.removeBuildFolders = removeBuildFolders

@@ -1192,0 +1200,0 @@ exports.runInParallel = runInParallel

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

## [0.12.0](https://github.com/nuxt-contrib/siroc/compare/v0.11.1...v0.12.0) (2021-07-09)
### ⚠ BREAKING CHANGES
* use regexps to match dependency externals (#213)
### Bug Fixes
* use regexps to match dependency externals ([#213](https://github.com/nuxt-contrib/siroc/issues/213)) ([58de5db](https://github.com/nuxt-contrib/siroc/commit/58de5dbfa7eef7a31bafbf1554fb985ffe914323))
### [0.11.1](https://github.com/nuxt-contrib/siroc/compare/v0.11.0...v0.11.1) (2021-06-23)

@@ -2,0 +13,0 @@

@@ -360,2 +360,3 @@ import { Consola } from 'consola';

}
declare function regexpForPackage(name: string): RegExp;
declare function getRollupConfig({ input, replace, alias, externals, dev, resolve: resolveOptions, plugins, esbuildOptions, ...options }: BuildConfigOptions, pkg?: Package, override?: BuildOverride): RollupOptions[];

@@ -390,2 +391,2 @@ declare const logRollupConfig: (pkg: Package, config: RollupOptions[]) => void;

export { BuildConfigOptions, BuildOptions, BuildOverride, DefaultPackageOptions, Hook, Hooks, Package, PackageCommands, PackageHookOptions, PackageHooks, PackageJson, PackageJsonPerson, PackageOptions, Repository, RequireProperties, SirocOptions, asArray, build, defineSirocConfig, ensureUnique, getRollupConfig, glob, groupBy, includeDefinedProperties, includeIf, logRollupConfig, removeBuildFolders, runInParallel, sortObjectKeys, tryJSON, tryRequire };
export { BuildConfigOptions, BuildOptions, BuildOverride, DefaultPackageOptions, Hook, Hooks, Package, PackageCommands, PackageHookOptions, PackageHooks, PackageJson, PackageJsonPerson, PackageOptions, Repository, RequireProperties, SirocOptions, asArray, build, defineSirocConfig, ensureUnique, getRollupConfig, glob, groupBy, includeDefinedProperties, includeIf, logRollupConfig, regexpForPackage, removeBuildFolders, runInParallel, sortObjectKeys, tryJSON, tryRequire };

@@ -636,2 +636,9 @@ import { extname, sep, resolve, dirname, relative, basename, join } from 'upath';

const __NODE_ENV__ = process.env.NODE_ENV;
function regexpForPackage(name) {
name = name.replace(/[\\/]/g, "[\\\\/]");
return new RegExp(`(^|node_modules[\\\\/])${name}([\\\\/]|$)`, "i");
}
function regexpForPackages(packages) {
return Object.keys(packages || {}).map(regexpForPackage);
}
function getRollupConfig(_a, pkg = new Package(), override) {

@@ -674,5 +681,5 @@ var _b = _a, {

const external = [
...Object.keys(pkgConfig.dependencies || {}),
...Object.keys(pkgConfig.optionalDependencies || {}),
...Object.keys(pkgConfig.peerDependencies || {}),
...regexpForPackages(pkgConfig.dependencies),
...regexpForPackages(pkgConfig.optionalDependencies),
...regexpForPackages(pkgConfig.peerDependencies),
...builtins,

@@ -946,2 +953,2 @@ ...externals

export { Package, asArray, build, defineSirocConfig, ensureUnique, getRollupConfig, glob, groupBy, includeDefinedProperties, includeIf, logRollupConfig, removeBuildFolders, runInParallel, sortObjectKeys, tryJSON, tryRequire };
export { Package, asArray, build, defineSirocConfig, ensureUnique, getRollupConfig, glob, groupBy, includeDefinedProperties, includeIf, logRollupConfig, regexpForPackage, removeBuildFolders, runInParallel, sortObjectKeys, tryJSON, tryRequire };

@@ -659,2 +659,9 @@ 'use strict';

const __NODE_ENV__ = process.env.NODE_ENV;
function regexpForPackage(name) {
name = name.replace(/[\\/]/g, "[\\\\/]");
return new RegExp(`(^|node_modules[\\\\/])${name}([\\\\/]|$)`, "i");
}
function regexpForPackages(packages) {
return Object.keys(packages || {}).map(regexpForPackage);
}
function getRollupConfig(_a, pkg = new Package(), override) {

@@ -697,5 +704,5 @@ var _b = _a, {

const external = [
...Object.keys(pkgConfig.dependencies || {}),
...Object.keys(pkgConfig.optionalDependencies || {}),
...Object.keys(pkgConfig.peerDependencies || {}),
...regexpForPackages(pkgConfig.dependencies),
...regexpForPackages(pkgConfig.optionalDependencies),
...regexpForPackages(pkgConfig.peerDependencies),
...builtins,

@@ -980,2 +987,3 @@ ...externals

exports.logRollupConfig = logRollupConfig;
exports.regexpForPackage = regexpForPackage;
exports.removeBuildFolders = removeBuildFolders;

@@ -982,0 +990,0 @@ exports.runInParallel = runInParallel;

{
"name": "siroc",
"version": "0.11.1",
"version": "0.12.0",
"description": "Zero-config build tooling for Node",

@@ -55,3 +55,3 @@ "keywords": [

"detect-indent": "^6.1.0",
"esbuild": "^0.12.9",
"esbuild": "^0.12.15",
"execa": "^5.1.1",

@@ -62,7 +62,7 @@ "fs-extra": "^10.0.0",

"mkdist": "^0.3.2",
"rollup": "^2.52.2",
"rollup": "^2.53.0",
"rollup-plugin-dts": "^3.0.2",
"rollup-plugin-esbuild": "4.5.0",
"sort-package-json": "^1.50.0",
"typescript": "^4.3.4",
"typescript": "^4.3.5",
"upath": "^2.0.1",

@@ -79,11 +79,11 @@ "v8-compile-cache": "^2.3.0"

"@types/execa": "^2.0.0",
"@types/fs-extra": "^9.0.11",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.23",
"@types/node": "^14.17.4",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"@types/fs-extra": "^9.0.12",
"@types/glob": "^7.1.4",
"@types/jest": "^26.0.24",
"@types/node": "^14.17.5",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"codecov": "^3.8.2",
"conventional-changelog-conventionalcommits": "^4.6.0",
"eslint": "^7.29.0",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",

@@ -93,12 +93,13 @@ "eslint-plugin-jest": "^24.3.6",

"eslint-plugin-promise": "^5.1.0",
"husky": "^6.0.0",
"jest": "^27.0.5",
"jest-environment-node": "^27.0.5",
"husky": "^7.0.1",
"jest": "^27.0.6",
"jest-environment-node": "^27.0.6",
"lint-staged": "^11.0.0",
"pinst": "^2.1.6",
"prettier": "^2.3.1",
"prettier": "^2.3.2",
"release-it": "14.10.0",
"semver": "^7.3.5",
"typescript": "^4.3.4"
"typescript": "^4.3.5"
},
"packageManager": "yarn@3.0.0-rc.9",
"volta": {

@@ -105,0 +106,0 @@ "node": "12.22.1"

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