🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

prototype-helper

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prototype-helper - npm Package Compare versions

Comparing version

to
0.1.1

dist/extension/array.d.ts

9

@types/index.d.ts

@@ -1,1 +0,8 @@

export {};
interface Number {
toComma(): string;
ampersand(amp: number): number;
safeDivision(value: number): number;
safeMultiply(value: number): number;
safeAdd(value: number): number;
safeSubtract(value: number): number;
}

2

dist/extension/number.js
"use strict";
Number.prototype.toComma = function () {
if (`$[this}`.length == 0)
if (`${this}`.length == 0)
return "0";

@@ -5,0 +5,0 @@ return `${this}`.toComma();

{
"name": "prototype-helper",
"version": "0.1.0",
"version": "0.1.1",
"private": false,
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {

@@ -25,3 +27,3 @@ "consola": "^2.15.3",

"test": "jest --detectOpenHandles --forceExit",
"publish": "npm run build && npm publish"
"publish": "yarn build && npm publish"
},

@@ -28,0 +30,0 @@ "nodemonConfig": {

@@ -20,3 +20,4 @@ {

"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"declaration": true
},

@@ -23,0 +24,0 @@ "include": ["./src/**/*.ts"],

Sorry, the diff of this file is not supported yet