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

@stamp/collision

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamp/collision - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

5

__tests__/index.js

@@ -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();

4

index.js

@@ -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",

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