@scanly/parsers 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/package.json +33 -33
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# @scanly/parsers
|
|
2
|
-
|
|
3
|
-
Local-only, side-effect-free semantic barcode payload parsers for Scanly SDK v2.0.
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm install @scanly/parsers
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { isSafeActionUrl, parseSemanticPayload } from "@scanly/parsers";
|
|
11
|
-
|
|
12
|
-
const parsed = parseSemanticPayload("https://example.com");
|
|
13
|
-
if (isSafeActionUrl(parsed.rawText)) console.log(parsed.structured);
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Parsers never replace or mutate raw decode text and never execute URLs, Wi-Fi joins, calls, messages, or calendar actions.
|
|
17
|
-
|
|
18
|
-
This is an advanced public package. Most applications receive parsed metadata through Browser or Node scan results and do not need to install it directly.
|
|
19
|
-
|
|
20
|
-
Version: 2.0
|
|
1
|
+
# @scanly/parsers
|
|
2
|
+
|
|
3
|
+
Local-only, side-effect-free semantic barcode payload parsers for Scanly SDK v2.1.0.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @scanly/parsers
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { isSafeActionUrl, parseSemanticPayload } from "@scanly/parsers";
|
|
11
|
+
|
|
12
|
+
const parsed = parseSemanticPayload("https://example.com");
|
|
13
|
+
if (isSafeActionUrl(parsed.rawText)) console.log(parsed.structured);
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Parsers never replace or mutate raw decode text and never execute URLs, Wi-Fi joins, calls, messages, or calendar actions.
|
|
17
|
+
|
|
18
|
+
This is an advanced public package. Most applications receive parsed metadata through Browser or Node scan results and do not need to install it directly.
|
|
19
|
+
|
|
20
|
+
Version: 2.1.0 · [Repository and documentation](https://github.com/Yangjunjie-Lin/Scanly)
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@scanly/parsers",
|
|
3
|
-
"version": "2.0
|
|
4
|
-
"description": "Local-only semantic barcode payload parsers for Scanly SDK",
|
|
5
|
-
"keywords": ["barcode", "qr-code", "parser", "gs1", "privacy", "scanly"],
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/Yangjunjie-Lin/Scanly.git",
|
|
9
|
-
"directory": "packages/parsers"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://github.com/Yangjunjie-Lin/Scanly#readme",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/Yangjunjie-Lin/Scanly/issues"
|
|
14
|
-
},
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"type": "module",
|
|
17
|
-
"sideEffects": false,
|
|
18
|
-
"main": "./dist/index.js",
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
|
-
"import": "./dist/index.js"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"files": [
|
|
27
|
-
"dist",
|
|
28
|
-
"README.md"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "tsc -p tsconfig.build.json"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@scanly/parsers",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Local-only semantic barcode payload parsers for Scanly SDK",
|
|
5
|
+
"keywords": ["barcode", "qr-code", "parser", "gs1", "privacy", "scanly"],
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Yangjunjie-Lin/Scanly.git",
|
|
9
|
+
"directory": "packages/parsers"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Yangjunjie-Lin/Scanly#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Yangjunjie-Lin/Scanly/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc -p tsconfig.build.json"
|
|
32
|
+
}
|
|
33
|
+
}
|