@boost/decorators
Advanced tools
Comparing version 3.0.0 to 4.0.0-alpha.1
@@ -0,1 +1,7 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
// Bundled with Packemon: https://packemon.dev | ||
@@ -170,10 +176,9 @@ // Platform: browser, Support: stable, Format: esm | ||
const config = { | ||
const config = _objectSpread({ | ||
cache: null, | ||
expires: 0, | ||
hasher, | ||
...(typeof options === 'function' ? { | ||
hasher: options | ||
} : options) | ||
}; | ||
hasher | ||
}, typeof options === 'function' ? { | ||
hasher: options | ||
} : options); | ||
@@ -180,0 +185,0 @@ if (process.env.NODE_ENV !== "production") { |
{ | ||
"name": "@boost/decorators", | ||
"version": "3.0.0", | ||
"version": "4.0.0-alpha.1", | ||
"type": "commonjs", | ||
"release": "1651512178029", | ||
"description": "Experimental decorators for common patterns.", | ||
@@ -9,7 +11,8 @@ "keywords": [ | ||
], | ||
"main": "./lib/node/index.js", | ||
"browser": "./lib/browser/index.js", | ||
"main": "./cjs/index.cjs", | ||
"browser": "./lib/index.js", | ||
"module": "./esm/index.js", | ||
"types": "./dts/index.d.ts", | ||
"files": [ | ||
"cjs/**/*.{cjs,mjs,map}", | ||
"dts/**/*.d.ts", | ||
@@ -21,4 +24,4 @@ "esm/**/*.{js,map}", | ||
"engines": { | ||
"node": ">=12.17.0", | ||
"npm": ">=6.13.0" | ||
"node": ">=14.15.0", | ||
"npm": ">=6.14.0" | ||
}, | ||
@@ -39,13 +42,30 @@ "repository": { | ||
}, | ||
"packemon": { | ||
"format": [ | ||
"lib", | ||
"esm" | ||
], | ||
"platform": [ | ||
"browser", | ||
"node" | ||
] | ||
"packemon": [ | ||
{ | ||
"api": "private", | ||
"format": "esm", | ||
"platform": "browser" | ||
}, | ||
{ | ||
"api": "private", | ||
"format": "cjs", | ||
"platform": "node" | ||
} | ||
], | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./dts/index.d.ts", | ||
"browser": { | ||
"module": "./esm/index.js", | ||
"import": "./esm/index.js", | ||
"default": "./lib/index.js" | ||
}, | ||
"node": { | ||
"import": "./cjs/index-wrapper.mjs", | ||
"require": "./cjs/index.cjs" | ||
} | ||
} | ||
}, | ||
"gitHead": "3934541f918ab3c6a1b53e34f302121ccdd23b83" | ||
"gitHead": "0d0595fe3d95951cc0d3936b7d811aed26306d20" | ||
} |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
72290
48
1006
2