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

@stamp/fp-constructor

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamp/fp-constructor - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

15

__tests__/index.js
var compose = require('@stamp/compose');
var FpConstructor = require('..');
describe('@stamp/fp-constructor', function () {
it('adds .constructor static method', function () {
describe('@stamp/fp-constructor', function() {
it('adds .constructor should be the stamp itself', function() {
var Stamp = compose(FpConstructor);
expect(typeof Stamp.constructor).toBe('function');
expect(Stamp.constructor).toBe(Stamp);
});
it('adds .constructor should be the stamp itself', function () {
var Stamp = compose(FpConstructor);
it('.constructor presence regardless of composition chain', function() {
var Stamp = compose({staticProperties: {constructor: 1}})
.compose(
{staticProperties: {constructor: 2}},
FpConstructor,
{staticProperties: {constructor: 3}}
).compose({staticProperties: {constructor: 4}});

@@ -14,0 +19,0 @@ expect(Stamp.constructor).toBe(Stamp);

{
"name": "@stamp/fp-constructor",
"version": "0.1.5",
"version": "0.1.6",
"description": "Adds the Stamp.constructor property referencing Stamp itself",

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