Socket
Socket
Sign inDemoInstall

broccoli-plugin

Package Overview
Dependencies
40
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.3 to 4.0.4

14

CHANGELOG.md

@@ -1,3 +0,15 @@

# master
## v4.0.4 (2021-03-11)
#### :bug: Bug Fix
* [#55](https://github.com/broccolijs/broccoli-plugin/pull/55) Avoid forcing eager calculation of error stacks ([@rwjblue](https://github.com/rwjblue))
#### :house: Internal
* [#56](https://github.com/broccolijs/broccoli-plugin/pull/56) Add release automation setup ([@rwjblue](https://github.com/rwjblue))
#### Committers: 1
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
# Changelog
# 4.0.3

@@ -4,0 +16,0 @@

2

dist/index.d.ts

@@ -14,3 +14,3 @@ import { InputNode, TransformNode, TransformNodeInfo, FeatureSet, CallbackObject } from 'broccoli-node-api';

private _trackInputChanges;
private _instantiationStack;
private _instantiationError;
private _readCompatError?;

@@ -17,0 +17,0 @@ private _readCompat?;

@@ -44,5 +44,6 @@ "use strict";

constructor(inputNodes, options = {}) {
// Remember current call stack (minus "Error" line)
const errorStack = '' + new Error().stack;
this._instantiationStack = errorStack.replace(/[^\n]*\n/, '');
// capture an instantiation error so that we can lazily access the stack to
// let folks know where a plugin was instantiated from if there is a build
// error
this._instantiationError = new Error();
if (options.name != null) {

@@ -125,2 +126,3 @@ this._name = options.name;

}
const instantiationError = this._instantiationError;
const nodeInfo = {

@@ -131,3 +133,7 @@ nodeType: 'transform',

getCallbackObject: this.getCallbackObject.bind(this),
instantiationStack: this._instantiationStack,
get instantiationStack() {
// Remember current call stack (minus "Error" line)
const errorStack = '' + instantiationError.stack;
return errorStack.replace(/[^\n]*\n/, '');
},
name: this._name,

@@ -134,0 +140,0 @@ annotation: this._annotation,

{
"name": "broccoli-plugin",
"version": "4.0.3",
"version": "4.0.4",
"description": "Base class for all Broccoli plugins",

@@ -16,2 +16,5 @@ "keywords": [

"types": "dist/index.d.ts",
"files": [
"dist/"
],
"scripts": {

@@ -26,2 +29,7 @@ "build": "tsc",

},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"dependencies": {

@@ -58,2 +66,4 @@ "broccoli-node-api": "^1.6.0",

"pretty-quick": "^2.0.1",
"release-it": "^14.2.1",
"release-it-lerna-changelog": "^3.1.0",
"typescript": "^3.7.3"

@@ -64,10 +74,20 @@ },

},
"files": [
"dist/"
],
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"release-it": {
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md",
"launchEditor": true
}
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true,
"tokenRef": "GITHUB_AUTH"
}
}
}

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