Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emmetio/scanner

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emmetio/scanner - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

scanner.cjs.js.map

35

package.json
{
"name": "@emmetio/scanner",
"version": "1.0.0",
"version": "1.0.1",
"description": "Scans given text character-by-character",
"main": "./scanner.js",
"module": "./scanner.es.js",
"types": "./index.d.ts",
"main": "./scanner.cjs.js",
"module": "./scanner.js",
"types": "./scanner.d.ts",
"type": "module",
"exports": {
"import": "./scanner.js",
"require": "./scanner.cjs.js"
},
"scripts": {
"test": "mocha",
"lint": "tslint ./*.ts",
"build": "rollup -c",
"clean": "rm -f ./scanner.* ./*.d.ts",
"prepare": "npm run lint && npm test && npm run clean && npm run build"
"prepublishOnly": "npm test && npm run clean && npm run build"
},

@@ -31,16 +35,15 @@ "repository": {

"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^12.7.2",
"mocha": "^7.1.1",
"rollup": "^2.6.0",
"rollup-plugin-typescript2": "^0.27.0",
"ts-lint": "^4.5.1",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
"@rollup/plugin-typescript": "^10.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.18",
"mocha": "^10.2.0",
"rollup": "^3.9.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
},
"mocha": {
"require": "ts-node/register",
"loader": "ts-node/esm",
"spec": "./test/*.ts"
},
"gitHead": "bbdc99c112f8aa245d18d802497ef030ceba68b6"
"gitHead": "ee1fe60b7cdbb73930ff626803fa3a920d5119df"
}

@@ -1,5 +0,1 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const defaultQuotedOptions = {

@@ -37,2 +33,13 @@ escape: 92,

/**
* Check for Umlauts i.e. ä, Ä, ö, Ö, ü and Ü
*/
function isUmlaut(code) {
return code === 196
|| code == 214
|| code === 220
|| code === 228
|| code === 246
|| code === 252;
}
/**
* Check if given character code is a white-space character: a space character

@@ -230,14 +237,3 @@ * or line breaks

exports.ScannerError = ScannerError;
exports.default = Scanner;
exports.eatPair = eatPair;
exports.eatQuoted = eatQuoted;
exports.isAlpha = isAlpha;
exports.isAlphaNumeric = isAlphaNumeric;
exports.isAlphaNumericWord = isAlphaNumericWord;
exports.isAlphaWord = isAlphaWord;
exports.isNumber = isNumber;
exports.isQuote = isQuote;
exports.isSpace = isSpace;
exports.isWhiteSpace = isWhiteSpace;
export { ScannerError, Scanner as default, eatPair, eatQuoted, isAlpha, isAlphaNumeric, isAlphaNumericWord, isAlphaWord, isNumber, isQuote, isSpace, isUmlaut, isWhiteSpace };
//# sourceMappingURL=scanner.js.map

@@ -1,2 +0,2 @@

import Scanner from './index';
import type Scanner from './scanner.js';
interface QuotedOptions {

@@ -23,2 +23,6 @@ /** A character code of quote-escape symbol */

/**
* Check for Umlauts i.e. ä, Ä, ö, Ö, ü and Ü
*/
export declare function isUmlaut(code: number): boolean;
/**
* Check if given character code is a white-space character: a space character

@@ -25,0 +29,0 @@ * or line breaks

Sorry, the diff of this file is not supported yet

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