Comparing version 1.0.3 to 1.1.0
@@ -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"); | ||
}); | ||
}); |
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", |
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
14042
6
241