bysquare 1.3.2 → 1.3.3
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/lib/generate.js +5 -2
- package/package.json +4 -4
package/lib/generate.js
CHANGED
|
@@ -22,9 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.generate = exports.alphanumericConversion = exports.makeTabbed = exports.prepareForCompression = exports.makeChecksum = exports.makeHeaderBysquare = void 0;
|
|
27
|
-
const
|
|
30
|
+
const lodash_deburr_1 = __importDefault(require("lodash.deburr"));
|
|
28
31
|
const lzma = __importStar(require("lzma-native"));
|
|
29
32
|
const index_1 = require("./index");
|
|
30
33
|
// echo "Hello" | xz --format=raw --lzma1=lc=3,lp=0,pb=2,dict=32KiB --stdout | hexdump -C
|
|
@@ -111,7 +114,7 @@ function makeTabbed(model) {
|
|
|
111
114
|
const index = index_1.SequenceOrder[key];
|
|
112
115
|
/** Diacritical marks are not allowed */
|
|
113
116
|
if (key === "PaymentNote") {
|
|
114
|
-
acc[index] = (0,
|
|
117
|
+
acc[index] = (0, lodash_deburr_1.default)(model[key]);
|
|
115
118
|
return acc;
|
|
116
119
|
}
|
|
117
120
|
acc[index] = String(model[key]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bysquare",
|
|
3
3
|
"description": "It's a national standard for payment QR codes adopted by Slovak Banking Association (SBA)",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Filip Seman <filip.seman@protonmail.com>",
|
|
7
7
|
"keywords": [
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"postversion": ""
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"lodash
|
|
37
|
+
"lodash.deburr": "4.1.0",
|
|
38
38
|
"lzma-native": "8.0.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/lodash
|
|
41
|
+
"@types/lodash.deburr": "4.1.7",
|
|
42
42
|
"@types/lzma-native": "^4.0.1",
|
|
43
43
|
"@types/node": ">=14",
|
|
44
44
|
"typescript": "~4.7.0",
|
|
45
|
-
"vitest": "0.
|
|
45
|
+
"vitest": "~0.24.0"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"lib",
|