New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-no-int64-number

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-int64-number - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

lib/rules/no-int64-number.js

@@ -26,3 +26,3 @@ /**

create: function(context) {
create: function (context) {

@@ -43,3 +43,3 @@ // variables should be defined here

Literal: node => {
if (node.value.toString() !== node.raw.toString()) {
if (typeof node.value == 'number' && node.value.toString() !== node.raw.toString()) {
context.report({

@@ -53,3 +53,3 @@ node,

});
}
}
}

@@ -56,0 +56,0 @@ };

{
"name": "eslint-plugin-no-int64-number",
"private": false,
"version": "0.0.1",
"version": "0.0.2",
"keywords": [

@@ -6,0 +6,0 @@ "eslint",

@@ -24,3 +24,3 @@ /**

valid: [
"1234", "-1234"
"1234", "-1234", 'foo'
],

@@ -27,0 +27,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