@arcblock/did-connect-core 4.0.0 → 4.0.1-beta.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/dist/ui/index.bundle.js +14 -14
- package/package.json +2 -2
package/dist/ui/index.bundle.js
CHANGED
|
@@ -512,7 +512,7 @@ var qrcode = function(typeNumber, errorCorrectionLevel) {
|
|
|
512
512
|
const _this = {};
|
|
513
513
|
const makeImpl = function(test, maskPattern) {
|
|
514
514
|
_moduleCount = _typeNumber * 4 + 17;
|
|
515
|
-
_modules = function(moduleCount) {
|
|
515
|
+
_modules = (function(moduleCount) {
|
|
516
516
|
const modules = new Array(moduleCount);
|
|
517
517
|
for (let row = 0; row < moduleCount; row += 1) {
|
|
518
518
|
modules[row] = new Array(moduleCount);
|
|
@@ -521,7 +521,7 @@ var qrcode = function(typeNumber, errorCorrectionLevel) {
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
return modules;
|
|
524
|
-
}(_moduleCount);
|
|
524
|
+
})(_moduleCount);
|
|
525
525
|
setupPositionProbePattern(0, 0);
|
|
526
526
|
setupPositionProbePattern(_moduleCount - 7, 0);
|
|
527
527
|
setupPositionProbePattern(0, _moduleCount - 7);
|
|
@@ -1037,7 +1037,7 @@ qrcode.stringToBytes = function(s) {
|
|
|
1037
1037
|
return bytes;
|
|
1038
1038
|
};
|
|
1039
1039
|
qrcode.createStringToBytes = function(unicodeData, numChars) {
|
|
1040
|
-
const unicodeMap = function() {
|
|
1040
|
+
const unicodeMap = (function() {
|
|
1041
1041
|
const bin = base64DecodeInputStream(unicodeData);
|
|
1042
1042
|
const read = function() {
|
|
1043
1043
|
const b = bin.read();
|
|
@@ -1061,7 +1061,7 @@ qrcode.createStringToBytes = function(unicodeData, numChars) {
|
|
|
1061
1061
|
throw count + " != " + numChars;
|
|
1062
1062
|
}
|
|
1063
1063
|
return unicodeMap2;
|
|
1064
|
-
}();
|
|
1064
|
+
})();
|
|
1065
1065
|
const unknownChar = "?".charCodeAt(0);
|
|
1066
1066
|
return function(s) {
|
|
1067
1067
|
const bytes = [];
|
|
@@ -1108,7 +1108,7 @@ var QRMaskPattern = {
|
|
|
1108
1108
|
PATTERN110: 6,
|
|
1109
1109
|
PATTERN111: 7
|
|
1110
1110
|
};
|
|
1111
|
-
var QRUtil = function() {
|
|
1111
|
+
var QRUtil = (function() {
|
|
1112
1112
|
const PATTERN_POSITION_TABLE = [
|
|
1113
1113
|
[],
|
|
1114
1114
|
[6, 18],
|
|
@@ -1337,8 +1337,8 @@ var QRUtil = function() {
|
|
|
1337
1337
|
return lostPoint;
|
|
1338
1338
|
};
|
|
1339
1339
|
return _this;
|
|
1340
|
-
}();
|
|
1341
|
-
var QRMath = function() {
|
|
1340
|
+
})();
|
|
1341
|
+
var QRMath = (function() {
|
|
1342
1342
|
const EXP_TABLE = new Array(256);
|
|
1343
1343
|
const LOG_TABLE = new Array(256);
|
|
1344
1344
|
for (let i = 0; i < 8; i += 1) {
|
|
@@ -1367,12 +1367,12 @@ var QRMath = function() {
|
|
|
1367
1367
|
return EXP_TABLE[n];
|
|
1368
1368
|
};
|
|
1369
1369
|
return _this;
|
|
1370
|
-
}();
|
|
1370
|
+
})();
|
|
1371
1371
|
var qrPolynomial = function(num, shift) {
|
|
1372
1372
|
if (typeof num.length == "undefined") {
|
|
1373
1373
|
throw num.length + "/" + shift;
|
|
1374
1374
|
}
|
|
1375
|
-
const _num = function() {
|
|
1375
|
+
const _num = (function() {
|
|
1376
1376
|
let offset = 0;
|
|
1377
1377
|
while (offset < num.length && num[offset] == 0) {
|
|
1378
1378
|
offset += 1;
|
|
@@ -1382,7 +1382,7 @@ var qrPolynomial = function(num, shift) {
|
|
|
1382
1382
|
_num2[i] = num[i + offset];
|
|
1383
1383
|
}
|
|
1384
1384
|
return _num2;
|
|
1385
|
-
}();
|
|
1385
|
+
})();
|
|
1386
1386
|
const _this = {};
|
|
1387
1387
|
_this.getAt = function(index) {
|
|
1388
1388
|
return _num[index];
|
|
@@ -1415,7 +1415,7 @@ var qrPolynomial = function(num, shift) {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
return _this;
|
|
1417
1417
|
};
|
|
1418
|
-
var QRRSBlock = function() {
|
|
1418
|
+
var QRRSBlock = (function() {
|
|
1419
1419
|
const RS_BLOCK_TABLE = [
|
|
1420
1420
|
// L
|
|
1421
1421
|
// M
|
|
@@ -1661,7 +1661,7 @@ var QRRSBlock = function() {
|
|
|
1661
1661
|
return list;
|
|
1662
1662
|
};
|
|
1663
1663
|
return _this;
|
|
1664
|
-
}();
|
|
1664
|
+
})();
|
|
1665
1665
|
var qrBitBuffer = function() {
|
|
1666
1666
|
const _buffer = [];
|
|
1667
1667
|
let _length = 0;
|
|
@@ -1811,12 +1811,12 @@ var qrKanji = function(data) {
|
|
|
1811
1811
|
const _mode = QRMode.MODE_KANJI;
|
|
1812
1812
|
const _data = data;
|
|
1813
1813
|
const stringToBytes2 = qrcode.stringToBytes;
|
|
1814
|
-
!function(c, code) {
|
|
1814
|
+
!(function(c, code) {
|
|
1815
1815
|
const test = stringToBytes2(c);
|
|
1816
1816
|
if (test.length != 2 || (test[0] << 8 | test[1]) != code) {
|
|
1817
1817
|
throw "sjis not supported.";
|
|
1818
1818
|
}
|
|
1819
|
-
}("\u53CB", 38726);
|
|
1819
|
+
})("\u53CB", 38726);
|
|
1820
1820
|
const _bytes = stringToBytes2(data);
|
|
1821
1821
|
const _this = {};
|
|
1822
1822
|
_this.getMode = function() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did-connect-core",
|
|
3
|
-
"version": "4.0.0",
|
|
3
|
+
"version": "4.0.1-beta.0",
|
|
4
4
|
"description": "Framework-agnostic DID Connect protocol client — types, state machines, adapters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/jsdom": "^28.0.1",
|
|
27
|
-
"esbuild": "^0.
|
|
27
|
+
"esbuild": "^0.25.12",
|
|
28
28
|
"jsdom": "^29.0.1",
|
|
29
29
|
"qrcode-generator": "^2.0.4"
|
|
30
30
|
},
|