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

@angular-devkit/build-optimizer

Package Overview
Dependencies
Maintainers
2
Versions
481
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-devkit/build-optimizer - npm Package Compare versions

Comparing version 0.0.32 to 0.0.33

2

package.json
{
"name": "@angular-devkit/build-optimizer",
"version": "0.0.32",
"version": "0.0.33",
"description": "Angular Build Optimizer",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -15,2 +15,5 @@ "use strict";

const pureImportMatches = getMatches(content, importCommentRegex, 1).join('|');
if (!pureImportMatches) {
return [];
}
const replacements = [];

@@ -56,2 +59,2 @@ const addReplacement = (start, length, content) => replacements.push({

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVyaWZ5LmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9oYW5zbC9Tb3VyY2VzL2hhbnNsL2RldmtpdC8iLCJzb3VyY2VzIjpbInBhY2thZ2VzL2FuZ3VsYXJfZGV2a2l0L2J1aWxkX29wdGltaXplci9zcmMvcHVyaWZ5L3B1cmlmeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7R0FNRztBQUNILHFEQUEyRDtBQUczRCxxRkFBcUY7QUFDckYsTUFBTSxrQkFBa0IsR0FBRyx5REFBeUQsQ0FBQztBQVNyRiw0QkFBbUMsT0FBZTtJQUVoRCxNQUFNLGlCQUFpQixHQUFHLFVBQVUsQ0FBQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQy9FLE1BQU0sWUFBWSxHQUFrQixFQUFFLENBQUM7SUFDdkMsTUFBTSxjQUFjLEdBQUcsQ0FBQyxLQUFhLEVBQUUsTUFBYyxFQUFFLE9BQWUsS0FDcEUs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IHJlcGxhY2VtZW50LmVuZCwgcmVwbGFjZW1lbnQuY29udGVudCk7XG4gIH0pO1xuXG4gIHJldHVybiByZXBsYWNlU291cmNlLnNvdXJjZSgpO1xufVxuXG5mdW5jdGlvbiBnZXRNYXRjaGVzKHN0cjogc3RyaW5nLCByZWdleDogUmVnRXhwLCBpbmRleDogbnVtYmVyKSB7XG4gIGxldCBtYXRjaGVzOiBzdHJpbmdbXSA9IFtdO1xuICBsZXQgbWF0Y2g7XG4gIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTpuby1jb25kaXRpb25hbC1hc3NpZ25tZW50XG4gIHdoaWxlIChtYXRjaCA9IHJlZ2V4LmV4ZWMoc3RyKSkge1xuICAgIG1hdGNoZXMgPSBtYXRjaGVzLmNvbmNhdChtYXRjaFtpbmRleF0uc3BsaXQoJywnKSk7XG4gIH1cblxuICByZXR1cm4gbWF0Y2hlcztcbn1cbiJdfQ==
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