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

@stamp/shortcut

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamp/shortcut - npm Package Compare versions

Comparing version 0.1.3 to 0.2.1

22

__tests__/index.js

@@ -22,9 +22,31 @@ var compose = require('@stamp/compose');

expect(Stamp.methods).toBeA('function');
expect(Stamp.props).toBeA('function');
expect(Stamp.properties).toBeA('function');
expect(Stamp.props).toBe(Stamp.properties);
expect(Stamp.statics).toBeA('function');
expect(Stamp.staticProperties).toBeA('function');
expect(Stamp.statics).toBe(Stamp.staticProperties);
expect(Stamp.conf).toBeA('function');
expect(Stamp.configuration).toBeA('function');
expect(Stamp.conf).toBe(Stamp.configuration);
expect(Stamp.deepProps).toBeA('function');
expect(Stamp.deepProperties).toBeA('function');
expect(Stamp.deepProps).toBe(Stamp.deepProperties);
expect(Stamp.deepStatics).toBeA('function');
expect(Stamp.staticDeepProperties).toBeA('function');
expect(Stamp.deepStatics).toBe(Stamp.staticDeepProperties);
expect(Stamp.deepConf).toBeA('function');
expect(Stamp.deepConfiguration).toBeA('function');
expect(Stamp.deepConf).toBe(Stamp.deepConfiguration);
expect(Stamp.init).toBeA('function');
expect(Stamp.initializers).toBeA('function');
expect(Stamp.init).toBe(Stamp.initializers);
expect(Stamp.composers).toBeA('function');

@@ -31,0 +53,0 @@ });

34

index.js

@@ -11,2 +11,10 @@ var compose = require('@stamp/compose');

var properties = createShortcut('properties');
var staticProperties = createShortcut('staticProperties');
var configuration = createShortcut('configuration');
var deepProperties = createShortcut('deepProperties');
var staticDeepProperties = createShortcut('staticDeepProperties');
var deepConfiguration = createShortcut('deepConfiguration');
var initializers = createShortcut('initializers');
module.exports = compose({

@@ -16,13 +24,25 @@ staticProperties: {

props: createShortcut('properties'),
statics: createShortcut('staticProperties'),
conf: createShortcut('configuration'),
props: properties,
properties: properties,
deepProps: createShortcut('deepProperties'),
deepStatics: createShortcut('staticDeepProperties'),
deepConf: createShortcut('deepConfiguration'),
statics: staticProperties,
staticProperties: staticProperties,
init: createShortcut('initializers'),
conf: configuration,
configuration: configuration,
deepProps: deepProperties,
deepProperties: deepProperties,
deepStatics: staticDeepProperties,
staticDeepProperties: staticDeepProperties,
deepConf: deepConfiguration,
deepConfiguration: deepConfiguration,
init: initializers,
initializers: initializers,
composers: createShortcut('composers')
}
});
{
"name": "@stamp/shortcut",
"version": "0.1.3",
"version": "0.2.1",
"description": "Adds handy shortcuts for stamp composition",

@@ -13,4 +13,4 @@ "main": "index.js",

"dependencies": {
"@stamp/compose": "^0.1.2"
"@stamp/compose": "^0.1.3"
}
}
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