@stamp/shortcut
Advanced tools
Comparing version 0.1.3 to 0.2.1
@@ -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" | ||
} | ||
} |
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
5612
109
Updated@stamp/compose@^0.1.3