style-unit
Advanced tools
Comparing version 3.0.2 to 3.0.3
## Changelog | ||
## v3.0.3 | ||
- Chore: add `@babel/runtime` as dependency | ||
### v3.0.2 | ||
@@ -4,0 +8,0 @@ |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
exports.__esModule = true; | ||
@@ -16,2 +18,4 @@ exports.isRpx = isRpx; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _universalEnv = require("universal-env"); | ||
@@ -55,2 +59,24 @@ | ||
} | ||
var CustomMap = /*#__PURE__*/function () { | ||
function CustomMap() { | ||
(0, _defineProperty2["default"])(this, "__store", {}); | ||
} | ||
var _proto = CustomMap.prototype; | ||
_proto.set = function set(key, value) { | ||
this.__store[key + "_" + typeof key] = value; | ||
}; | ||
_proto.get = function get(key) { | ||
return this.__store[key + "_" + typeof key]; | ||
}; | ||
_proto.has = function has(key) { | ||
return Object.prototype.hasOwnProperty.call(this.__store, key + "_" + typeof key); | ||
}; | ||
return CustomMap; | ||
}(); | ||
/** | ||
@@ -131,3 +157,3 @@ * Is string contains rpx | ||
function cached(fn) { | ||
var cache = new Map(); | ||
var cache = new CustomMap(); | ||
return function cachedFn() { | ||
@@ -134,0 +160,0 @@ var key = arguments.length <= 0 ? undefined : arguments[0]; |
{ | ||
"name": "style-unit", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "style-unit", | ||
"license": "BSD-3-Clause", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"files": [ | ||
@@ -19,4 +20,5 @@ "lib" | ||
"dependencies": { | ||
"universal-env": "^3.0.0" | ||
"universal-env": "^3.0.0", | ||
"@babel/runtime": "^7.14.6" | ||
} | ||
} |
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
6681
138
2
+ Added@babel/runtime@^7.14.6
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)