Socket
Socket
Sign inDemoInstall

to-percent-js

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.3.4

7

build/cjs/src/index.js

@@ -8,3 +8,3 @@ "use strict";

});
exports["default"] = exports.toInt = exports.getNum = exports.toNum = exports.percent = exports.round = void 0;
exports.toNum = exports.toInt = exports.round = exports.percent = exports.getNum = exports["default"] = void 0;

@@ -27,5 +27,4 @@ var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof"));

var round = function round(f) {
var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
return toNum(f).toFixed(precision);
var round = function round(f, precision) {
return toNum(f).toFixed(precision !== null && precision !== void 0 ? precision : 2);
};

@@ -32,0 +31,0 @@

@@ -13,5 +13,4 @@ import _typeof from "reshow-runtime/es/helpers/typeof";

var round = function round(f) {
var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
return toNum(f).toFixed(precision);
var round = function round(f, precision) {
return toNum(f).toFixed(precision !== null && precision !== void 0 ? precision : 2);
};

@@ -18,0 +17,0 @@

{
"name": "to-percent-js",
"version": "0.3.3",
"version": "0.3.4",
"description": "Change number to percentage.",

@@ -21,14 +21,12 @@ "repository": "react-atomic/react-atomic-organism",

"scripts": {
"build:cjs": "BABEL_ENV=build babel src -d build/cjs/src --root-mode upward",
"clean": "find ./build -name '*.*' | xargs rm -rf",
"build": "npm run clean && npm run build:cjs && npm run build:es",
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --root-mode upward",
"build:es": "BABEL_ENV=es babel src -d build/es/src --root-mode upward",
"build:test": "BABEL_ENV=build babel tests -d build/tests --root-mode upward",
"build": "rm -rf build && npm run build:cjs && npm run build:es",
"test": "npm run build && mocha 'build/cjs/**/__tests__/*.js'",
"mochaFor": "mocha",
"mocha": "npm run mochaFor -- 'build/cjs/**/__tests__/*.js'",
"test": "npm run build && npm run mocha",
"prepublishOnly": "npm run test"
},
"files": [
"build",
"package.json",
"README.md"
]
"files": ["build", "package.json", "README.md"]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc