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

style-unit

Package Overview
Dependencies
Maintainers
7
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-unit - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

4

CHANGELOG.md
## 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];

6

package.json
{
"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"
}
}
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