module-develop-kit 0.5.13 → 1.0.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.
Files changed (100) hide show
  1. package/dist/commonjs-virtual-dir/_commonjsHelpers.js +4 -6
  2. package/dist/commonjs-virtual-dir/_virtual_mobile-compatibility-detection.js +1 -1
  3. package/dist/commonjs-virtual-dir/index.js +3 -3
  4. package/dist/commonjs-virtual-dir/index2.js +5 -3
  5. package/dist/commonjs-virtual-dir/index3.js +3 -5
  6. package/dist/commonjs-virtual-dir/index4.js +2 -5
  7. package/dist/commonjs-virtual-dir/index5.js +2 -2
  8. package/dist/commonjs-virtual-dir/index6.js +2 -2
  9. package/dist/main.d.ts +74 -104
  10. package/dist/main.js +16 -20
  11. package/dist/src/outside-call/utils.js +1 -1
  12. package/dist/src/shield/crypto/const.js +4 -0
  13. package/dist/src/shield/crypto/index.js +53 -0
  14. package/dist/src/shield/crypto/sm2.js +7 -0
  15. package/dist/src/shield/crypto/sm4.js +15 -0
  16. package/dist/src/shield/crypto/util.js +29 -0
  17. package/dist/src/shield/html-sanitize.js +21 -0
  18. package/dist/src/vite-plugins/getCompatibilityPlugins.js +19 -8
  19. package/dist/src/vite-plugins/vitePluginCompatibilityDetection.js +8 -10
  20. package/dist/vendor/base64-js/index.js +1 -1
  21. package/dist/vendor/jsbn/index.js +1 -1
  22. package/dist/vendor/sdp-transform/lib/index.js +1 -1
  23. package/dist/vite-plugins/index.d.ts +5 -5
  24. package/package.json +3 -3
  25. package/dist/commonjs-virtual-dir/_commonjs-dynamic-modules.js +0 -6
  26. package/dist/commonjs-virtual-dir/aes.js +0 -4
  27. package/dist/commonjs-virtual-dir/blowfish.js +0 -4
  28. package/dist/commonjs-virtual-dir/cipher-core.js +0 -4
  29. package/dist/commonjs-virtual-dir/core.js +0 -4
  30. package/dist/commonjs-virtual-dir/enc-base64.js +0 -4
  31. package/dist/commonjs-virtual-dir/enc-base64url.js +0 -4
  32. package/dist/commonjs-virtual-dir/enc-utf16.js +0 -4
  33. package/dist/commonjs-virtual-dir/evpkdf.js +0 -4
  34. package/dist/commonjs-virtual-dir/format-hex.js +0 -4
  35. package/dist/commonjs-virtual-dir/hmac.js +0 -4
  36. package/dist/commonjs-virtual-dir/index7.js +0 -4
  37. package/dist/commonjs-virtual-dir/index8.js +0 -4
  38. package/dist/commonjs-virtual-dir/lib-typedarrays.js +0 -4
  39. package/dist/commonjs-virtual-dir/md5.js +0 -4
  40. package/dist/commonjs-virtual-dir/mode-cfb.js +0 -4
  41. package/dist/commonjs-virtual-dir/mode-ctr-gladman.js +0 -4
  42. package/dist/commonjs-virtual-dir/mode-ctr.js +0 -4
  43. package/dist/commonjs-virtual-dir/mode-ecb.js +0 -4
  44. package/dist/commonjs-virtual-dir/mode-ofb.js +0 -4
  45. package/dist/commonjs-virtual-dir/pad-ansix923.js +0 -4
  46. package/dist/commonjs-virtual-dir/pad-iso10126.js +0 -4
  47. package/dist/commonjs-virtual-dir/pad-iso97971.js +0 -4
  48. package/dist/commonjs-virtual-dir/pad-nopadding.js +0 -4
  49. package/dist/commonjs-virtual-dir/pad-zeropadding.js +0 -4
  50. package/dist/commonjs-virtual-dir/pbkdf2.js +0 -4
  51. package/dist/commonjs-virtual-dir/rabbit-legacy.js +0 -4
  52. package/dist/commonjs-virtual-dir/rabbit.js +0 -4
  53. package/dist/commonjs-virtual-dir/rc4.js +0 -4
  54. package/dist/commonjs-virtual-dir/ripemd160.js +0 -4
  55. package/dist/commonjs-virtual-dir/sha1.js +0 -4
  56. package/dist/commonjs-virtual-dir/sha224.js +0 -4
  57. package/dist/commonjs-virtual-dir/sha256.js +0 -4
  58. package/dist/commonjs-virtual-dir/sha3.js +0 -4
  59. package/dist/commonjs-virtual-dir/sha384.js +0 -4
  60. package/dist/commonjs-virtual-dir/sha512.js +0 -4
  61. package/dist/commonjs-virtual-dir/tripledes.js +0 -4
  62. package/dist/commonjs-virtual-dir/x64-core.js +0 -4
  63. package/dist/src/shield/crypto.js +0 -28
  64. package/dist/src/shield/index.js +0 -59
  65. package/dist/vendor/crypto-js/aes.js +0 -69
  66. package/dist/vendor/crypto-js/blowfish.js +0 -1131
  67. package/dist/vendor/crypto-js/cipher-core.js +0 -544
  68. package/dist/vendor/crypto-js/core.js +0 -508
  69. package/dist/vendor/crypto-js/enc-base64.js +0 -80
  70. package/dist/vendor/crypto-js/enc-base64url.js +0 -87
  71. package/dist/vendor/crypto-js/enc-utf16.js +0 -99
  72. package/dist/vendor/crypto-js/evpkdf.js +0 -70
  73. package/dist/vendor/crypto-js/format-hex.js +0 -53
  74. package/dist/vendor/crypto-js/hmac.js +0 -83
  75. package/dist/vendor/crypto-js/index.js +0 -49
  76. package/dist/vendor/crypto-js/lib-typedarrays.js +0 -27
  77. package/dist/vendor/crypto-js/md5.js +0 -71
  78. package/dist/vendor/crypto-js/mode-cfb.js +0 -36
  79. package/dist/vendor/crypto-js/mode-ctr-gladman.js +0 -45
  80. package/dist/vendor/crypto-js/mode-ctr.js +0 -28
  81. package/dist/vendor/crypto-js/mode-ecb.js +0 -27
  82. package/dist/vendor/crypto-js/mode-ofb.js +0 -26
  83. package/dist/vendor/crypto-js/pad-ansix923.js +0 -25
  84. package/dist/vendor/crypto-js/pad-iso10126.js +0 -25
  85. package/dist/vendor/crypto-js/pad-iso97971.js +0 -23
  86. package/dist/vendor/crypto-js/pad-nopadding.js +0 -21
  87. package/dist/vendor/crypto-js/pad-zeropadding.js +0 -28
  88. package/dist/vendor/crypto-js/pbkdf2.js +0 -74
  89. package/dist/vendor/crypto-js/rabbit-legacy.js +0 -73
  90. package/dist/vendor/crypto-js/rabbit.js +0 -75
  91. package/dist/vendor/crypto-js/rc4.js +0 -63
  92. package/dist/vendor/crypto-js/ripemd160.js +0 -398
  93. package/dist/vendor/crypto-js/sha1.js +0 -49
  94. package/dist/vendor/crypto-js/sha224.js +0 -36
  95. package/dist/vendor/crypto-js/sha256.js +0 -57
  96. package/dist/vendor/crypto-js/sha3.js +0 -116
  97. package/dist/vendor/crypto-js/sha384.js +0 -37
  98. package/dist/vendor/crypto-js/sha512.js +0 -147
  99. package/dist/vendor/crypto-js/tripledes.js +0 -729
  100. package/dist/vendor/crypto-js/x64-core.js +0 -235
@@ -1,235 +0,0 @@
1
- import { __module as n } from "../../commonjs-virtual-dir/x64-core.js";
2
- import { __require as x } from "./core.js";
3
- var g = n.exports, v;
4
- function w() {
5
- return v ? n.exports : (v = 1, function(f, p) {
6
- (function(s, i) {
7
- f.exports = i(x());
8
- })(g, function(s) {
9
- return function(i) {
10
- var u = s, h = u.lib, a = h.Base, d = h.WordArray, c = u.x64 = {};
11
- c.Word = a.extend({
12
- /**
13
- * Initializes a newly created 64-bit word.
14
- *
15
- * @param {number} high The high 32 bits.
16
- * @param {number} low The low 32 bits.
17
- *
18
- * @example
19
- *
20
- * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
21
- */
22
- init: function(r, e) {
23
- this.high = r, this.low = e;
24
- }
25
- /**
26
- * Bitwise NOTs this word.
27
- *
28
- * @return {X64Word} A new x64-Word object after negating.
29
- *
30
- * @example
31
- *
32
- * var negated = x64Word.not();
33
- */
34
- // not: function () {
35
- // var high = ~this.high;
36
- // var low = ~this.low;
37
- // return X64Word.create(high, low);
38
- // },
39
- /**
40
- * Bitwise ANDs this word with the passed word.
41
- *
42
- * @param {X64Word} word The x64-Word to AND with this word.
43
- *
44
- * @return {X64Word} A new x64-Word object after ANDing.
45
- *
46
- * @example
47
- *
48
- * var anded = x64Word.and(anotherX64Word);
49
- */
50
- // and: function (word) {
51
- // var high = this.high & word.high;
52
- // var low = this.low & word.low;
53
- // return X64Word.create(high, low);
54
- // },
55
- /**
56
- * Bitwise ORs this word with the passed word.
57
- *
58
- * @param {X64Word} word The x64-Word to OR with this word.
59
- *
60
- * @return {X64Word} A new x64-Word object after ORing.
61
- *
62
- * @example
63
- *
64
- * var ored = x64Word.or(anotherX64Word);
65
- */
66
- // or: function (word) {
67
- // var high = this.high | word.high;
68
- // var low = this.low | word.low;
69
- // return X64Word.create(high, low);
70
- // },
71
- /**
72
- * Bitwise XORs this word with the passed word.
73
- *
74
- * @param {X64Word} word The x64-Word to XOR with this word.
75
- *
76
- * @return {X64Word} A new x64-Word object after XORing.
77
- *
78
- * @example
79
- *
80
- * var xored = x64Word.xor(anotherX64Word);
81
- */
82
- // xor: function (word) {
83
- // var high = this.high ^ word.high;
84
- // var low = this.low ^ word.low;
85
- // return X64Word.create(high, low);
86
- // },
87
- /**
88
- * Shifts this word n bits to the left.
89
- *
90
- * @param {number} n The number of bits to shift.
91
- *
92
- * @return {X64Word} A new x64-Word object after shifting.
93
- *
94
- * @example
95
- *
96
- * var shifted = x64Word.shiftL(25);
97
- */
98
- // shiftL: function (n) {
99
- // if (n < 32) {
100
- // var high = (this.high << n) | (this.low >>> (32 - n));
101
- // var low = this.low << n;
102
- // } else {
103
- // var high = this.low << (n - 32);
104
- // var low = 0;
105
- // }
106
- // return X64Word.create(high, low);
107
- // },
108
- /**
109
- * Shifts this word n bits to the right.
110
- *
111
- * @param {number} n The number of bits to shift.
112
- *
113
- * @return {X64Word} A new x64-Word object after shifting.
114
- *
115
- * @example
116
- *
117
- * var shifted = x64Word.shiftR(7);
118
- */
119
- // shiftR: function (n) {
120
- // if (n < 32) {
121
- // var low = (this.low >>> n) | (this.high << (32 - n));
122
- // var high = this.high >>> n;
123
- // } else {
124
- // var low = this.high >>> (n - 32);
125
- // var high = 0;
126
- // }
127
- // return X64Word.create(high, low);
128
- // },
129
- /**
130
- * Rotates this word n bits to the left.
131
- *
132
- * @param {number} n The number of bits to rotate.
133
- *
134
- * @return {X64Word} A new x64-Word object after rotating.
135
- *
136
- * @example
137
- *
138
- * var rotated = x64Word.rotL(25);
139
- */
140
- // rotL: function (n) {
141
- // return this.shiftL(n).or(this.shiftR(64 - n));
142
- // },
143
- /**
144
- * Rotates this word n bits to the right.
145
- *
146
- * @param {number} n The number of bits to rotate.
147
- *
148
- * @return {X64Word} A new x64-Word object after rotating.
149
- *
150
- * @example
151
- *
152
- * var rotated = x64Word.rotR(7);
153
- */
154
- // rotR: function (n) {
155
- // return this.shiftR(n).or(this.shiftL(64 - n));
156
- // },
157
- /**
158
- * Adds this word with the passed word.
159
- *
160
- * @param {X64Word} word The x64-Word to add with this word.
161
- *
162
- * @return {X64Word} A new x64-Word object after adding.
163
- *
164
- * @example
165
- *
166
- * var added = x64Word.add(anotherX64Word);
167
- */
168
- // add: function (word) {
169
- // var low = (this.low + word.low) | 0;
170
- // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
171
- // var high = (this.high + word.high + carry) | 0;
172
- // return X64Word.create(high, low);
173
- // }
174
- }), c.WordArray = a.extend({
175
- /**
176
- * Initializes a newly created word array.
177
- *
178
- * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
179
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
180
- *
181
- * @example
182
- *
183
- * var wordArray = CryptoJS.x64.WordArray.create();
184
- *
185
- * var wordArray = CryptoJS.x64.WordArray.create([
186
- * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
187
- * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
188
- * ]);
189
- *
190
- * var wordArray = CryptoJS.x64.WordArray.create([
191
- * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
192
- * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
193
- * ], 10);
194
- */
195
- init: function(r, e) {
196
- r = this.words = r || [], e != i ? this.sigBytes = e : this.sigBytes = r.length * 8;
197
- },
198
- /**
199
- * Converts this 64-bit word array to a 32-bit word array.
200
- *
201
- * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
202
- *
203
- * @example
204
- *
205
- * var x32WordArray = x64WordArray.toX32();
206
- */
207
- toX32: function() {
208
- for (var r = this.words, e = r.length, t = [], o = 0; o < e; o++) {
209
- var l = r[o];
210
- t.push(l.high), t.push(l.low);
211
- }
212
- return d.create(t, this.sigBytes);
213
- },
214
- /**
215
- * Creates a copy of this word array.
216
- *
217
- * @return {X64WordArray} The clone.
218
- *
219
- * @example
220
- *
221
- * var clone = x64WordArray.clone();
222
- */
223
- clone: function() {
224
- for (var r = a.clone.call(this), e = r.words = this.words.slice(0), t = e.length, o = 0; o < t; o++)
225
- e[o] = e[o].clone();
226
- return r;
227
- }
228
- });
229
- }(), s;
230
- });
231
- }(n), n.exports);
232
- }
233
- export {
234
- w as __require
235
- };