Socket
Socket
Sign inDemoInstall

long

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

long - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

umd/index.d.ts

2

index.d.ts

@@ -426,2 +426,2 @@ declare class Long {

export default Long;
export = Long; // compatible with `import Long from "long"`
{
"name": "long",
"version": "5.0.1",
"version": "5.1.0",
"author": "Daniel Wirtz <dcode@dcode.io>",

@@ -14,9 +14,18 @@ "description": "A Long class for representing a 64-bit two's-complement integer value.",

"keywords": [
"math"
"math",
"long",
"int64"
],
"license": "Apache-2.0",
"type": "module",
"main": "index.js",
"main": "umd/index.js",
"types": "index.d.ts",
"exports": {
".": {
"import": "./index.js",
"require": "./umd/index.js"
}
},
"scripts": {
"build": "esm2umd Long index.js > umd/index.js",
"test": "node tests"

@@ -27,5 +36,11 @@ },

"index.d.ts",
"umd/index.js",
"umd/index.d.ts",
"umd/package.json",
"LICENSE",
"README.md"
]
],
"devDependencies": {
"esm2umd": "^0.2.0"
}
}

@@ -30,5 +30,5 @@ long.js

The class is compatible with CommonJS and AMD loaders and is exposed globally as `Long` if neither is available.
The package exports an ECMAScript module with an UMD fallback.
```javascript
```js
import Long from "long";

@@ -42,2 +42,4 @@

Note that mixing ESM and CommonJS is not recommended as it yield different classes with the same functionality.
API

@@ -44,0 +46,0 @@ ---

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