@fulldecent/nice-checkers-plugin 1.0.0 → 1.0.1
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -516,6 +516,6 @@ E.g. Cheaper and slower: $5 in 5-7 days
|
|
|
516
516
|
or Fast and expensive: $15 in 1-2 days.`,"rdfs:label":"OfferShippingDetails","rdfs:subClassOf":{"@id":"schema:StructuredValue"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/2506"}},{"@id":"schema:SurgicalProcedure","@type":"rdfs:Class","owl:equivalentClass":{"@id":"http://purl.bioontology.org/ontology/SNOMEDCT/387713003"},"rdfs:comment":"A medical procedure involving an incision with instruments; performed for diagnose, or therapeutic purposes.","rdfs:label":"SurgicalProcedure","rdfs:subClassOf":{"@id":"schema:MedicalProcedure"},"schema:isPartOf":{"@id":"https://health-lifesci.schema.org"}},{"@id":"schema:hasVariant","@type":"rdf:Property","rdfs:comment":"Indicates a [[Product]] that is a member of this [[ProductGroup]] (or [[ProductModel]]).","rdfs:label":"hasVariant","schema:domainIncludes":{"@id":"schema:ProductGroup"},"schema:inverseOf":{"@id":"schema:isVariantOf"},"schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:rangeIncludes":{"@id":"schema:Product"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/1797"}},{"@id":"schema:remainingAttendeeCapacity","@type":"rdf:Property","rdfs:comment":"The number of attendee places for an event that remain unallocated.","rdfs:label":"remainingAttendeeCapacity","schema:domainIncludes":{"@id":"schema:Event"},"schema:rangeIncludes":{"@id":"schema:Integer"}},{"@id":"schema:paymentMethod","@type":"rdf:Property","rdfs:comment":"The name of the credit card or other method of payment for the order.","rdfs:label":"paymentMethod","schema:domainIncludes":[{"@id":"schema:Order"},{"@id":"schema:Invoice"}],"schema:rangeIncludes":[{"@id":"schema:Text"},{"@id":"schema:PaymentMethod"}],"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/3537"}},{"@id":"schema:ListPrice","@type":"schema:PriceTypeEnumeration","rdfs:comment":"Represents the list price of an offered product. Typically the same as the [MSRP](https://schema.org/MSRP).","rdfs:label":"ListPrice","schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/2712"}},{"@id":"schema:acceptsReservations","@type":"rdf:Property","rdfs:comment":"Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.","rdfs:label":"acceptsReservations","schema:domainIncludes":{"@id":"schema:FoodEstablishment"},"schema:rangeIncludes":[{"@id":"schema:Text"},{"@id":"schema:URL"},{"@id":"schema:Boolean"}]},{"@id":"schema:PatientExperienceHealthAspect","@type":"schema:HealthAspectEnumeration","rdfs:comment":"Content about the real life experience of patients or people that have lived a similar experience about the topic. May be forums, topics, Q-and-A and related material.","rdfs:label":"PatientExperienceHealthAspect","schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/2374"}},{"@id":"schema:customerRemorseReturnFees","@type":"rdf:Property","rdfs:comment":"The type of return fees if the product is returned due to customer remorse.","rdfs:label":"customerRemorseReturnFees","schema:domainIncludes":{"@id":"schema:MerchantReturnPolicy"},"schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:rangeIncludes":{"@id":"schema:ReturnFeesEnumeration"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/2880"}},{"@id":"schema:renegotiableLoan","@type":"rdf:Property","rdfs:comment":"Whether the terms for payment of interest can be renegotiated during the life of the loan.","rdfs:label":"renegotiableLoan","schema:contributor":{"@id":"https://schema.org/docs/collab/FIBO"},"schema:domainIncludes":{"@id":"schema:LoanOrCredit"},"schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:rangeIncludes":{"@id":"schema:Boolean"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/1253"}},{"@id":"schema:BodyMeasurementNeck","@type":"schema:BodyMeasurementTypeEnumeration","rdfs:comment":"Girth of neck. Used, for example, to fit shirts.","rdfs:label":"BodyMeasurementNeck","schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/2811"}},{"@id":"schema:warranty","@type":"rdf:Property","rdfs:comment":"The warranty promise(s) included in the offer.","rdfs:label":"warranty","schema:contributor":{"@id":"https://schema.org/docs/collab/GoodRelationsTerms"},"schema:domainIncludes":[{"@id":"schema:Offer"},{"@id":"schema:Demand"}],"schema:rangeIncludes":{"@id":"schema:WarrantyPromise"}},{"@id":"schema:broadcastOfEvent","@type":"rdf:Property","rdfs:comment":"The event being broadcast such as a sporting event or awards ceremony.","rdfs:label":"broadcastOfEvent","schema:domainIncludes":{"@id":"schema:BroadcastEvent"},"schema:rangeIncludes":{"@id":"schema:Event"}},{"@id":"schema:DrugCostCategory","@type":"rdfs:Class","rdfs:comment":"Enumerated categories of medical drug costs.","rdfs:label":"DrugCostCategory","rdfs:subClassOf":{"@id":"schema:MedicalEnumeration"},"schema:isPartOf":{"@id":"https://health-lifesci.schema.org"}},{"@id":"schema:LimitedByGuaranteeCharity","@type":"schema:UKNonprofitType","rdfs:comment":"LimitedByGuaranteeCharity: Non-profit type referring to a charitable company that is limited by guarantee (UK).","rdfs:label":"LimitedByGuaranteeCharity","schema:isPartOf":{"@id":"https://pending.schema.org"},"schema:source":{"@id":"https://github.com/schemaorg/schemaorg/issues/2543"}},{"@id":"schema:director","@type":"rdf:Property","rdfs:comment":"A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.","rdfs:label":"director","schema:domainIncludes":[{"@id":"schema:Clip"},{"@id":"schema:CreativeWorkSeason"},{"@id":"schema:Event"},{"@id":"schema:VideoObject"},{"@id":"schema:MovieSeries"},{"@id":"schema:TVSeries"},{"@id":"schema:VideoGame"},{"@id":"schema:Movie"},{"@id":"schema:RadioSeries"},{"@id":"schema:Episode"},{"@id":"schema:VideoGameSeries"}],"schema:rangeIncludes":{"@id":"schema:Person"}},{"@id":"schema:AutomatedTeller","@type":"rdfs:Class","rdfs:comment":"ATM/cash machine.","rdfs:label":"AutomatedTeller","rdfs:subClassOf":{"@id":"schema:FinancialService"}},{"@id":"schema:HotelRoom","@type":"rdfs:Class","rdfs:comment":`A hotel room is a single room in a hotel.
|
|
517
517
|
<br /><br />
|
|
518
518
|
See also the <a href="/docs/hotels.html">dedicated document on the use of schema.org for marking up hotels and other forms of accommodations</a>.
|
|
519
|
-
`,"rdfs:label":"HotelRoom","rdfs:subClassOf":{"@id":"schema:Room"},"schema:contributor":{"@id":"https://schema.org/docs/collab/STI_Accommodation_Ontology"}},{"@id":"schema:PercutaneousProcedure","@type":"schema:MedicalProcedureType","rdfs:comment":"A type of medical procedure that involves percutaneous techniques, where access to organs or tissue is achieved via needle-puncture of the skin. For example, catheter-based procedures like stent delivery.","rdfs:label":"PercutaneousProcedure","schema:isPartOf":{"@id":"https://health-lifesci.schema.org"}}]};var M=class M extends Rule{constructor(){super();this.validClasses=new Set;this.validProperties=new Set;try{let e=O["@context"],a=e.rdfs+"Class",t=e.rdf+"Property";if(O["@graph"])for(let r of O["@graph"]){let i=Array.isArray(r["@type"])?r["@type"]:[r["@type"]];(i.includes("rdfs:Class")||i.includes(a))&&this.validClasses.add(r["rdfs:label"]),(i.includes("rdf:Property")||i.includes(t))&&this.validProperties.add(r["rdfs:label"]);}if(this.validClasses.size===0||this.validProperties.size===0)throw new Error("Schema loading resulted in zero classes or properties. The vocabulary format may have changed.")}catch(e){throw new Error(`[SchemaOrgJsonLdRule] CRITICAL: Failed to load or process schema: ${e.message}`)}}documentation(){return {description:"Validates JSON-LD against the bundled Schema.org vocabulary.",url:"https://github.com/fulldecent/html-validate-nice-checkers/blob/main/README.md#schema-org-json-ld"}}setup(){this.on("dom:ready",e=>{let{document:a,source:t}=e,r='script[type="application/ld+json"]',i=a.querySelectorAll(r);if(i.length===0)return;let o=load(t.data);o(r).each((d,m)=>{let h=o(m).text();if(!h||h.trim()==="")return;let R=i[d],D;try{D=JSON.parse(h);}catch(B){this.report({node:R,message:`Invalid JSON syntax: ${B.message}`});return}this.validateSchemaObject(D,R,true);});});}validateSchemaObject(e,a,t){if(Array.isArray(e)){e.forEach(i=>this.validateSchemaObject(i,a,t));return}if(typeof e!="object"||e===null)return;let r=e["@type"];if(t&&!r){this.report({node:a,message:'Top-level JSON-LD object is missing required "@type" property.'});return}if(r){let i=Array.isArray(r)?r:[r];for(let o of i)this.validClasses.has(o)||this.report({node:a,message:`Schema.org type "${o}" is not a valid class.`});}for(let i in e){if(i.startsWith("@"))continue;this.validProperties.has(i)||this.report({node:a,message:`Schema.org property "${i}" is not a valid property.`});let o=e[i];typeof o=="object"&&o!==null&&this.validateSchemaObject(o,a,false);}}};c(M,"SchemaOrgJsonLdRule");var I=M;var fe={name:"nice-checkers-plugin",rules:{"nice-checkers/canonical-link":p,"nice-checkers/external-links":u,"nice-checkers/https-links":g,"nice-checkers/internal-links":y,"nice-checkers/latest-packages":b,"nice-checkers/mailto-awesome":v,"nice-checkers/no-jquery":P,"nice-checkers/schema-org-json-ld":I},configs:{recommended:{rules:{"nice-checkers/canonical-link":["error"],"nice-checkers/external-links":["error"],"nice-checkers/https-links":["error"],"nice-checkers/internal-links":["error"],"nice-checkers/latest-packages":["warn"],"nice-checkers/mailto-awesome":["error"],"nice-checkers/no-jquery":["error"],"nice-checkers/schema-org-json-ld":["error"]}}}},fs=fe;
|
|
519
|
+
`,"rdfs:label":"HotelRoom","rdfs:subClassOf":{"@id":"schema:Room"},"schema:contributor":{"@id":"https://schema.org/docs/collab/STI_Accommodation_Ontology"}},{"@id":"schema:PercutaneousProcedure","@type":"schema:MedicalProcedureType","rdfs:comment":"A type of medical procedure that involves percutaneous techniques, where access to organs or tissue is achieved via needle-puncture of the skin. For example, catheter-based procedures like stent delivery.","rdfs:label":"PercutaneousProcedure","schema:isPartOf":{"@id":"https://health-lifesci.schema.org"}}]};var M=class M extends Rule{constructor(){super();this.validClasses=new Set;this.validProperties=new Set;try{let e=O["@context"],a=e.rdfs+"Class",t=e.rdf+"Property";if(O["@graph"])for(let r of O["@graph"]){let i=Array.isArray(r["@type"])?r["@type"]:[r["@type"]];(i.includes("rdfs:Class")||i.includes(a))&&this.validClasses.add(r["rdfs:label"]),(i.includes("rdf:Property")||i.includes(t))&&this.validProperties.add(r["rdfs:label"]);}if(this.validClasses.size===0||this.validProperties.size===0)throw new Error("Schema loading resulted in zero classes or properties. The vocabulary format may have changed.")}catch(e){throw new Error(`[SchemaOrgJsonLdRule] CRITICAL: Failed to load or process schema: ${e.message}`)}}documentation(){return {description:"Validates JSON-LD against the bundled Schema.org vocabulary.",url:"https://github.com/fulldecent/html-validate-nice-checkers/blob/main/README.md#schema-org-json-ld"}}setup(){this.on("dom:ready",e=>{let{document:a,source:t}=e,r='script[type="application/ld+json"]',i=a.querySelectorAll(r);if(i.length===0)return;let o=load(t.data);o(r).each((d,m)=>{let h=o(m).text();if(!h||h.trim()==="")return;let R=i[d],D;try{D=JSON.parse(h);}catch(B){this.report({node:R,message:`Invalid JSON syntax: ${B.message}`});return}this.validateSchemaObject(D,R,true);});});}validateSchemaObject(e,a,t){if(Array.isArray(e)){e.forEach(i=>this.validateSchemaObject(i,a,t));return}if(typeof e!="object"||e===null)return;if(t&&e["@graph"]&&Array.isArray(e["@graph"])){this.validateSchemaObject(e["@graph"],a,true);return}let r=e["@type"];if(t&&!r){this.report({node:a,message:'Top-level JSON-LD object is missing required "@type" property.'});return}if(r){let i=Array.isArray(r)?r:[r];for(let o of i)this.validClasses.has(o)||this.report({node:a,message:`Schema.org type "${o}" is not a valid class.`});}for(let i in e){if(i.startsWith("@"))continue;this.validProperties.has(i)||this.report({node:a,message:`Schema.org property "${i}" is not a valid property.`});let o=e[i];typeof o=="object"&&o!==null&&this.validateSchemaObject(o,a,false);}}};c(M,"SchemaOrgJsonLdRule");var I=M;var fe={name:"nice-checkers-plugin",rules:{"nice-checkers/canonical-link":p,"nice-checkers/external-links":u,"nice-checkers/https-links":g,"nice-checkers/internal-links":y,"nice-checkers/latest-packages":b,"nice-checkers/mailto-awesome":v,"nice-checkers/no-jquery":P,"nice-checkers/schema-org-json-ld":I},configs:{recommended:{rules:{"nice-checkers/canonical-link":["error"],"nice-checkers/external-links":["error"],"nice-checkers/https-links":["error"],"nice-checkers/internal-links":["error"],"nice-checkers/latest-packages":["warn"],"nice-checkers/mailto-awesome":["error"],"nice-checkers/no-jquery":["error"],"nice-checkers/schema-org-json-ld":["error"]}}}},fs=fe;
|
|
520
520
|
export{fs as default};//# sourceMappingURL=index.js.map
|
|
521
521
|
//# sourceMappingURL=index.js.map
|