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

@bem-react/pack

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bem-react/pack - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

lib/plugins/BabelTypeScriptPlugin.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.6.0](https://github.com/bem/bem-react/compare/@bem-react/pack@1.5.1...@bem-react/pack@1.6.0) (2021-09-03)
### Bug Fixes
- **pack:** remove unused replace option ([8bd86c2](https://github.com/bem/bem-react/commit/8bd86c2a47d82daa93900060e88a696f24456c70))
### Features
- **pack:** call onAfterRun when process is interrupted ([2b87be8](https://github.com/bem/bem-react/commit/2b87be8384f17168f579c1bcc016a95e0ea208a5))
- **pack:** impl BabelTypeScriptPlugin plugin ([6e1adee](https://github.com/bem/bem-react/commit/6e1adee89b6056c1739965e38a8688e91d606b86))
## [1.5.1](https://github.com/bem/bem-react/compare/@bem-react/pack@1.5.0...@bem-react/pack@1.5.1) (2021-06-23)

@@ -8,0 +19,0 @@

@@ -24,2 +24,12 @@ "use strict";

const disposeRender = progress_1.renderProgressState(state, config.silent);
process.on('SIGINT', async () => {
disposeRender();
// Run onAfterRun (cleanup) hook when process is interrupted.
for (const plugin of config.plugins) {
const hook = plugin.onAfterRun;
if (hook !== undefined) {
await wrapToPromise_1.wrapToPromise(hook.bind(plugin), options);
}
}
});
stdout_1.stdout.plain(`${chalk_1.default.gray('[@bem-react/pack]')} Start building...`);

@@ -26,0 +36,0 @@ for (const step of steps) {

4

lib/plugins/TypeScriptPlugin.d.ts

@@ -11,6 +11,2 @@ import { Plugin, OnDone, HookOptions } from '../interfaces';

onCreateSideEffects: (path: string) => string[] | boolean | undefined;
/**
* A map whose keys must be replaced for values.
*/
replace?: Record<string, string>;
};

@@ -17,0 +13,0 @@ declare class TypeScriptPlugin implements Plugin {

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

{"version":"1.5.1","commands":{"build":{"id":"build","description":"Runs components build with defined plugins.","pluginName":"@bem-react/pack","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","char":"c","description":"The path to a build config file.","default":"build.config.js"},"silent":{"name":"silent","type":"boolean","description":"Disable logs output.","allowNo":false}},"args":[]}}}
{"version":"1.6.0","commands":{"build":{"id":"build","description":"Runs components build with defined plugins.","pluginName":"@bem-react/pack","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","char":"c","description":"The path to a build config file.","default":"build.config.js"},"silent":{"name":"silent","type":"boolean","description":"Disable logs output.","allowNo":false}},"args":[]}}}
{
"name": "@bem-react/pack",
"version": "1.5.1",
"version": "1.6.0",
"description": "A tool for building and prepare components for publishing",

@@ -42,2 +42,4 @@ "homepage": "https://github.com/bem/bem-react/tree/master/packages/pack",

"devDependencies": {
"@babel/cli": "7.14.8",
"@babel/core": "7.15.0",
"@oclif/dev-cli": "1.22.2",

@@ -54,3 +56,3 @@ "@types/debug": "4.1.5",

},
"gitHead": "88afc379bb048e9e5f4633e5430c9d28d5b6d693"
"gitHead": "95cb27909cc232d3676b4d010b5b9b8cf171e8e3"
}
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