Socket
Socket
Sign inDemoInstall

estree-util-is-identifier-name

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

estree-util-is-identifier-name - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

index.d.ts

15

index.js

@@ -9,2 +9,7 @@ 'use strict'

/**
* Checks if the given character code can start an identifier.
*
* @param {number} code
*/
// To do: support astrals.

@@ -15,2 +20,7 @@ function start(code) {

/**
* Checks if the given character code can continue an identifier.
*
* @param {number} code
*/
// To do: support astrals.

@@ -22,2 +32,7 @@ function cont(code) {

/**
* Checks if the given string is a valid identifier name.
*
* @param {string} name
*/
function name(name) {

@@ -24,0 +39,0 @@ var index = -1

21

package.json
{
"name": "estree-util-is-identifier-name",
"version": "1.0.0",
"version": "1.1.0",
"description": "Check if something can be an ecmascript (javascript) identifier name",

@@ -27,6 +27,7 @@ "license": "MIT",

"index.js",
"regex.js"
"regex.js",
"*.d.ts"
],
"dependencies": {},
"devDependencies": {
"@types/tape": "^4.0.0",
"@unicode/unicode-13.0.0": "^1.0.0",

@@ -38,4 +39,7 @@ "nyc": "^15.0.0",

"remark-preset-wooorm": "^8.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"xo": "^0.36.0"
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.38.0"
},

@@ -47,3 +51,5 @@ "scripts": {

"test-coverage": "nyc --reporter lcov tape test.js",
"test": "npm run generate && npm run format && npm run test-coverage"
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "npm run generate && npm run format && npm run test-coverage && npm run build",
"prepack": "npm run build && npm run format"
},

@@ -79,3 +85,8 @@ "prettier": {

]
},
"typeCoverage": {
"atLeast": 100,
"detail": true,
"strict": true
}
}
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