qidian-shared 1.0.28 → 1.0.29
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/qidian-shared.cjs.js +9 -0
- package/dist/qidian-shared.cjs.js.map +1 -1
- package/dist/qidian-shared.es.js +9 -0
- package/dist/qidian-shared.es.js.map +1 -1
- package/dist/qidian-shared.umd.js +9 -0
- package/dist/qidian-shared.umd.js.map +1 -1
- package/dist/utils/common.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1273,6 +1273,14 @@ function extractSlotsWithoutPrefix(slots, prefix) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return res;
|
|
1275
1275
|
}
|
|
1276
|
+
function filterSlots(slots, filterName) {
|
|
1277
|
+
const res = [];
|
|
1278
|
+
for (const key in slots) {
|
|
1279
|
+
if (filterName.includes(key)) continue;
|
|
1280
|
+
res.push(key);
|
|
1281
|
+
}
|
|
1282
|
+
return res;
|
|
1283
|
+
}
|
|
1276
1284
|
function easyCopy(data) {
|
|
1277
1285
|
return JSON.parse(JSON.stringify(data));
|
|
1278
1286
|
}
|
|
@@ -12463,6 +12471,7 @@ exports.encryptBase64 = encryptBase64;
|
|
|
12463
12471
|
exports.encryptWithAes = encryptWithAes;
|
|
12464
12472
|
exports.extractSlotsWithPrefix = extractSlotsWithPrefix;
|
|
12465
12473
|
exports.extractSlotsWithoutPrefix = extractSlotsWithoutPrefix;
|
|
12474
|
+
exports.filterSlots = filterSlots;
|
|
12466
12475
|
exports.generateAesKey = generateAesKey;
|
|
12467
12476
|
exports.generateRandomString = generateRandomString;
|
|
12468
12477
|
exports.getUrlParam = getUrlParam;
|