@blotoutio/edgetag-sdk-js 0.5.1 → 0.5.2
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/index.cjs +12 -9
- package/index.js +12 -9
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -433,15 +433,18 @@ const handleManifest = manifest => {
|
|
|
433
433
|
const providers = [];
|
|
434
434
|
manifest.forEach(provider => {
|
|
435
435
|
providers.push(provider.package);
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
436
|
+
|
|
437
|
+
if (provider.rules) {
|
|
438
|
+
Object.entries(provider.rules).forEach(([name, recipe]) => {
|
|
439
|
+
switch (name) {
|
|
440
|
+
case 'capture':
|
|
441
|
+
{
|
|
442
|
+
handleCapture(provider.package, recipe);
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
445
448
|
});
|
|
446
449
|
savePerKey('local', tagStorage, providers, providersKey);
|
|
447
450
|
};
|
package/index.js
CHANGED
|
@@ -429,15 +429,18 @@ const handleManifest = manifest => {
|
|
|
429
429
|
const providers = [];
|
|
430
430
|
manifest.forEach(provider => {
|
|
431
431
|
providers.push(provider.package);
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
432
|
+
|
|
433
|
+
if (provider.rules) {
|
|
434
|
+
Object.entries(provider.rules).forEach(([name, recipe]) => {
|
|
435
|
+
switch (name) {
|
|
436
|
+
case 'capture':
|
|
437
|
+
{
|
|
438
|
+
handleCapture(provider.package, recipe);
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
441
444
|
});
|
|
442
445
|
savePerKey('local', tagStorage, providers, providersKey);
|
|
443
446
|
};
|