@stamp/collision
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -7,2 +7,3 @@ var compose = require('@stamp/compose'); | ||
var draw1 = jest.fn(); | ||
draw1.mockReturnValueOnce({a: 1}); | ||
var Defer1 = compose({ | ||
@@ -16,2 +17,3 @@ methods: { | ||
var draw2 = jest.fn(); | ||
draw2.mockReturnValueOnce({b: 2}); | ||
var Defer2 = Collision.collisionSetup({defer: ['draw']}).compose({ | ||
@@ -26,4 +28,5 @@ methods: { | ||
obj.draw(); | ||
var result = obj.draw(); | ||
expect(result).toEqual([{a: 1}, {b: 2}]); | ||
expect(draw1).toBeCalled(); | ||
@@ -30,0 +33,0 @@ expect(draw2).toBeCalled(); |
@@ -19,5 +19,7 @@ var compose = require('@stamp/compose'); | ||
'use strict'; | ||
const results = []; | ||
for (var i = 0; i < functions.length; i++) { | ||
functions[i].apply(this, arguments); // jshint ignore:line | ||
results.push(functions[i].apply(this, arguments)); // jshint ignore:line | ||
} | ||
return results; | ||
} | ||
@@ -24,0 +26,0 @@ |
{ | ||
"name": "@stamp/collision", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Detect and manipulate method collisions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16843
400
0