@d-i-t-a/reader 2.3.13 → 2.3.14
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/esm/index.js +8 -8
- package/dist/esm/index.js.map +2 -2
- package/dist/injectables/click/click.js +1 -1
- package/dist/injectables/click/click.js.map +1 -1
- package/dist/reader.js +77 -62950
- package/dist/reader.js.map +2 -2
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -12262,7 +12262,7 @@ var require_parse = __commonJS({
|
|
|
12262
12262
|
try {
|
|
12263
12263
|
parser.parse();
|
|
12264
12264
|
} catch (e) {
|
|
12265
|
-
if (
|
|
12265
|
+
if (false) {
|
|
12266
12266
|
if (e.name === "CssSyntaxError" && opts && opts.from) {
|
|
12267
12267
|
if (/\.scss$/i.test(opts.from)) {
|
|
12268
12268
|
e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
|
|
@@ -12456,7 +12456,7 @@ var require_lazy_result = __commonJS({
|
|
|
12456
12456
|
return this.css;
|
|
12457
12457
|
}
|
|
12458
12458
|
then(onFulfilled, onRejected) {
|
|
12459
|
-
if (
|
|
12459
|
+
if (false) {
|
|
12460
12460
|
if (!("from" in this.opts)) {
|
|
12461
12461
|
warnOnce("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");
|
|
12462
12462
|
}
|
|
@@ -12603,7 +12603,7 @@ var require_lazy_result = __commonJS({
|
|
|
12603
12603
|
error.plugin = plugin.postcssPlugin;
|
|
12604
12604
|
error.setMessage();
|
|
12605
12605
|
} else if (plugin.postcssVersion) {
|
|
12606
|
-
if (
|
|
12606
|
+
if (false) {
|
|
12607
12607
|
let pluginName = plugin.postcssPlugin;
|
|
12608
12608
|
let pluginVer = plugin.postcssVersion;
|
|
12609
12609
|
let runtimeVer = this.result.processor.version;
|
|
@@ -12849,7 +12849,7 @@ var require_no_work_result = __commonJS({
|
|
|
12849
12849
|
return this._css;
|
|
12850
12850
|
}
|
|
12851
12851
|
then(onFulfilled, onRejected) {
|
|
12852
|
-
if (
|
|
12852
|
+
if (false) {
|
|
12853
12853
|
if (!("from" in this._opts)) {
|
|
12854
12854
|
warnOnce("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");
|
|
12855
12855
|
}
|
|
@@ -12918,7 +12918,7 @@ var require_processor = __commonJS({
|
|
|
12918
12918
|
} else if (typeof i === "function") {
|
|
12919
12919
|
normalized.push(i);
|
|
12920
12920
|
} else if (typeof i === "object" && (i.parse || i.stringify)) {
|
|
12921
|
-
if (
|
|
12921
|
+
if (false) {
|
|
12922
12922
|
throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");
|
|
12923
12923
|
}
|
|
12924
12924
|
} else {
|
|
@@ -47608,7 +47608,7 @@ var Publication = class extends import_publication.Publication {
|
|
|
47608
47608
|
const positions = this.positionsByHref(this.getRelativeHref(item.Href));
|
|
47609
47609
|
if (positions?.length > 0) {
|
|
47610
47610
|
const locator = positions[0];
|
|
47611
|
-
let progress = Math.round(locator.locations.totalProgression ? locator.locations.totalProgression : 0 * 100);
|
|
47611
|
+
let progress = Math.round((locator.locations.totalProgression ? locator.locations.totalProgression : 0) * 100);
|
|
47612
47612
|
if (this.sample?.limit) {
|
|
47613
47613
|
let valid = progress <= this.sample?.limit;
|
|
47614
47614
|
if (!valid) {
|
|
@@ -55256,7 +55256,7 @@ function delay(t, v) {
|
|
|
55256
55256
|
setTimeout(resolve.bind(null, v), t);
|
|
55257
55257
|
});
|
|
55258
55258
|
}
|
|
55259
|
-
var IS_DEV =
|
|
55259
|
+
var IS_DEV = false;
|
|
55260
55260
|
import_loglevel13.default.setLevel(IS_DEV ? "trace" : "warn", true);
|
|
55261
55261
|
|
|
55262
55262
|
// src/modules/protection/ContentProtectionModule.ts
|
|
@@ -61913,7 +61913,7 @@ function convertAndCamel(o) {
|
|
|
61913
61913
|
if (o.hasOwnProperty(origKey)) {
|
|
61914
61914
|
newKey = (origKey.charAt(0).toLowerCase() + origKey.slice(1) || origKey).toString();
|
|
61915
61915
|
value = o[origKey];
|
|
61916
|
-
if (value instanceof Array || value !== null && value.constructor === Object) {
|
|
61916
|
+
if (value instanceof Array || value !== null && value !== void 0 && value.constructor === Object) {
|
|
61917
61917
|
value = convertAndCamel(value);
|
|
61918
61918
|
}
|
|
61919
61919
|
if (newKey === "href1") {
|