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

@desertnet/scanner

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@desertnet/scanner - npm Package Compare versions

Comparing version

to
1.1.0

1

index.js
"use strict"
module.exports = require('./dist/es5/Scanner.js').default
module.exports.Token = require('./dist/es5/Token.js').default

2

package.json
{
"name": "@desertnet/scanner",
"version": "1.0.2",
"version": "1.1.0",
"description": "A regex-based string scanner/tokenizer",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -140,6 +140,8 @@ # scanner

### Token
### new Scanner.Token(type, value, index, line, column)
Instances of the `Token` class cannot be instantiated directly. Instead, they are returned to you by `scanner.nextToken()`. They have the following readable properties:
Generally, instances of the `Token` class should not be instantiated directly. However the constructor is publicly available as it can be convenient to instantiate your own in tests.
In typical usage, they are returned to you by `scanner.nextToken()`. They have the following readable properties:
- `type`: The name of the token type. (A string.)

@@ -146,0 +148,0 @@ - `value`: The matching substring from the input.