estree-util-is-identifier-name
Advanced tools
Comparing version 1.0.0 to 1.1.0
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 |
{ | ||
"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 | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13628
7
86
12