@likecoin/epubcheck-ts 0.2.2 → 0.2.4
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/README.md +8 -8
- package/bin/epubcheck.js +4 -4
- package/bin/epubcheck.ts +4 -4
- package/dist/index.cjs +1057 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1057 -101
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/schemas/applications.rng +0 -429
- package/schemas/aria.rng +0 -3355
- package/schemas/block.rng +0 -488
- package/schemas/common.rng +0 -1076
- package/schemas/container.rng +0 -24
- package/schemas/core-scripting.rng +0 -950
- package/schemas/data.rng +0 -161
- package/schemas/datatypes.rng +0 -401
- package/schemas/embed.rng +0 -980
- package/schemas/epub-mathml3-inc.rng +0 -161
- package/schemas/epub-nav-30.rnc +0 -44
- package/schemas/epub-nav-30.rng +0 -19985
- package/schemas/epub-nav-30.sch +0 -87
- package/schemas/epub-prefix-attr.rng +0 -17
- package/schemas/epub-shared-inc.rng +0 -29
- package/schemas/epub-ssml-attrs.rng +0 -17
- package/schemas/epub-svg-30.rnc +0 -17
- package/schemas/epub-svg-30.rng +0 -19903
- package/schemas/epub-svg-30.sch +0 -7
- package/schemas/epub-svg-forgiving-inc.rng +0 -315
- package/schemas/epub-switch.rng +0 -121
- package/schemas/epub-trigger.rng +0 -90
- package/schemas/epub-type-attr.rng +0 -12
- package/schemas/epub-xhtml-30.rnc +0 -6
- package/schemas/epub-xhtml-30.rng +0 -19882
- package/schemas/epub-xhtml-30.sch +0 -409
- package/schemas/epub-xhtml-inc.rng +0 -151
- package/schemas/epub-xhtml-integration.rng +0 -565
- package/schemas/epub-xhtml-svg-mathml.rng +0 -17
- package/schemas/form-datatypes.rng +0 -54
- package/schemas/mathml3-common.rng +0 -336
- package/schemas/mathml3-content.rng +0 -1552
- package/schemas/mathml3-inc.rng +0 -30
- package/schemas/mathml3-presentation.rng +0 -2341
- package/schemas/mathml3-strict-content.rng +0 -205
- package/schemas/media.rng +0 -374
- package/schemas/meta.rng +0 -754
- package/schemas/microdata.rng +0 -192
- package/schemas/ncx.rng +0 -308
- package/schemas/ocf-container-30.rnc +0 -37
- package/schemas/ocf-container-30.rng +0 -568
- package/schemas/opf.rng +0 -15
- package/schemas/opf20.rng +0 -513
- package/schemas/package-30.rnc +0 -133
- package/schemas/package-30.rng +0 -1153
- package/schemas/package-30.sch +0 -444
- package/schemas/phrase.rng +0 -746
- package/schemas/rdfa.rng +0 -552
- package/schemas/revision.rng +0 -106
- package/schemas/ruby.rng +0 -141
- package/schemas/sectional.rng +0 -278
- package/schemas/structural.rng +0 -298
- package/schemas/tables.rng +0 -420
- package/schemas/web-components.rng +0 -184
- package/schemas/web-forms.rng +0 -975
- package/schemas/web-forms2.rng +0 -1236
package/dist/index.d.cts
CHANGED
|
@@ -229,6 +229,8 @@ interface ValidationContext {
|
|
|
229
229
|
packageDocument?: PackageDocument;
|
|
230
230
|
/** NCX UID for validation against OPF identifier */
|
|
231
231
|
ncxUid?: string;
|
|
232
|
+
/** Resources referenced in content but not declared in manifest */
|
|
233
|
+
referencedUndeclaredResources?: Set<string>;
|
|
232
234
|
}
|
|
233
235
|
/**
|
|
234
236
|
* Rootfile reference from container.xml
|
|
@@ -376,6 +378,7 @@ declare enum MessageId {
|
|
|
376
378
|
OPF_013 = "OPF-013",// Remote resource not allowed
|
|
377
379
|
OPF_014 = "OPF-014",// Invalid manifest item media-type
|
|
378
380
|
OPF_097 = "OPF-097",// Resource not referenced
|
|
381
|
+
OPF_099 = "OPF-099",// Manifest must not list the package document
|
|
379
382
|
OPF_015 = "OPF-015",// Invalid guide reference
|
|
380
383
|
RSC_001 = "RSC-001",// Could not open resource
|
|
381
384
|
RSC_002 = "RSC-002",// Resource missing from manifest
|
package/dist/index.d.ts
CHANGED
|
@@ -229,6 +229,8 @@ interface ValidationContext {
|
|
|
229
229
|
packageDocument?: PackageDocument;
|
|
230
230
|
/** NCX UID for validation against OPF identifier */
|
|
231
231
|
ncxUid?: string;
|
|
232
|
+
/** Resources referenced in content but not declared in manifest */
|
|
233
|
+
referencedUndeclaredResources?: Set<string>;
|
|
232
234
|
}
|
|
233
235
|
/**
|
|
234
236
|
* Rootfile reference from container.xml
|
|
@@ -376,6 +378,7 @@ declare enum MessageId {
|
|
|
376
378
|
OPF_013 = "OPF-013",// Remote resource not allowed
|
|
377
379
|
OPF_014 = "OPF-014",// Invalid manifest item media-type
|
|
378
380
|
OPF_097 = "OPF-097",// Resource not referenced
|
|
381
|
+
OPF_099 = "OPF-099",// Manifest must not list the package document
|
|
379
382
|
OPF_015 = "OPF-015",// Invalid guide reference
|
|
380
383
|
RSC_001 = "RSC-001",// Could not open resource
|
|
381
384
|
RSC_002 = "RSC-002",// Resource missing from manifest
|