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

@stamp/it

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamp/it - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

package-lock.json

8

__tests__/index.js

@@ -44,3 +44,6 @@ var checkCompose = require('@stamp/check-compose');

conf: {c: 1},
deepConf: {dc: 1}
deepConf: {dc: 1},
propertyDescriptors: {pd: {value: 1}},
staticPropertyDescriptors: {spd: {value: 1}},
name: "1"
}).compose;

@@ -56,3 +59,6 @@

expect(descr.deepConfiguration.dc).toBe(1);
expect(descr.propertyDescriptors.pd.value).toBe(1);
expect(descr.staticPropertyDescriptors.spd.value).toBe(1);
expect(descr.staticPropertyDescriptors.name.value).toBe("1");
});
});

5

index.js
var compose = require('@stamp/compose');
var Shortcut = require('@stamp/shortcut');
var isStamp = require('@stamp/is/stamp');
var isString = require('@stamp/is/string');
var isObject = require('@stamp/is/object');

@@ -31,3 +32,2 @@ var isFunction = require('@stamp/is/function');

var deepStatics = descr.deepStatics;
var spd = descr.staticPropertyDescriptors;
var configuration = descr.configuration;

@@ -50,2 +50,5 @@ var conf = descr.conf;

var spd = descr.staticPropertyDescriptors;
if (isString(descr.name)) spd = assign({}, spd || {}, { name: { value: descr.name } });
var c = isObject(conf) || isObject(configuration) ?

@@ -52,0 +55,0 @@ assign({}, conf, configuration) : undefined;

{
"name": "@stamp/it",
"version": "1.0.3",
"version": "1.1.0",
"description": "A nice, handy API implementation of the compose standard",

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