Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/ml-spec

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/ml-spec - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

3

lib/attributes.d.ts

@@ -60,3 +60,3 @@ /**

'#DocumentElementEventAttrs'?: boolean | ('oncopy' | 'oncut' | 'onpaste')[];
'#HTMLLinkAndFetchingAttrs'?: ('crossorigin' | 'download' | 'href' | 'hreflang' | 'integrity' | 'loading' | 'media' | 'ping' | 'referrerpolicy' | 'rel' | 'target' | 'type')[];
'#HTMLLinkAndFetchingAttrs'?: ('crossorigin' | 'download' | 'href' | 'hreflang' | 'integrity' | 'loading' | 'media' | 'ping' | 'referrerpolicy' | 'rel' | 'target' | 'type' | 'fetchpriority')[];
'#HTMLEmbededAndMediaContentAttrs'?: ('autoplay' | 'controls' | 'height' | 'loop' | 'muted' | 'preload' | 'sizes' | 'src' | 'srcset' | 'width')[];

@@ -98,2 +98,3 @@ '#HTMLFormControlElementAttrs'?: ('autocomplete' | 'dirname' | 'disabled' | 'form' | 'formaction' | 'formenctype' | 'formmethod' | 'formnovalidate' | 'formtarget' | 'maxlength' | 'minlength' | 'name' | 'readonly' | 'required')[];

animatable?: boolean;
experimental?: boolean;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./permitted-structres"), exports);
(0, tslib_1.__exportStar)(require("./attributes"), exports);
(0, tslib_1.__exportStar)(require("./get-attr-specs"), exports);
(0, tslib_1.__exportStar)(require("./get-spec-by-tag-name"), exports);
(0, tslib_1.__exportStar)(require("./get-spec"), exports);
(0, tslib_1.__exportStar)(require("./get-ns"), exports);
(0, tslib_1.__exportStar)(require("./types"), exports);
tslib_1.__exportStar(require("./permitted-structres"), exports);
tslib_1.__exportStar(require("./attributes"), exports);
tslib_1.__exportStar(require("./get-attr-specs"), exports);
tslib_1.__exportStar(require("./get-spec-by-tag-name"), exports);
tslib_1.__exportStar(require("./get-spec"), exports);
tslib_1.__exportStar(require("./get-ns"), exports);
tslib_1.__exportStar(require("./types"), exports);

@@ -150,3 +150,3 @@ import type { AttributeJSON } from '.';

caseSensitive?: true;
experimental?: true;
experimental?: boolean;
obsolete?: true;

@@ -153,0 +153,0 @@ deprecated?: boolean;

{
"name": "@markuplint/ml-spec",
"version": "2.0.2",
"version": "2.1.0",
"description": "Types and schema that specs of the Markup languages for markuplint",

@@ -27,6 +27,6 @@ "repository": "git@github.com:markuplint/markuplint.git",

"devDependencies": {
"@markuplint/types": "2.0.1-dev.20220307.0",
"@markuplint/types": "2.1.0",
"json-schema-to-typescript": "^10.1.5"
},
"gitHead": "76939e9a8278829f1871a117f8c0cbc9777db7c2"
"gitHead": "0321513e36cc74929c41e06e1f58c43ff7602556"
}

@@ -50,3 +50,4 @@ {

"ineffective": { "$ref": "#/definitions/Selectors" },
"animatable": { "type": "boolean" }
"animatable": { "type": "boolean" },
"experimental": { "type": "boolean" }
}

@@ -53,0 +54,0 @@ },

@@ -158,3 +158,4 @@ {

"target",
"type"
"type",
"fetchpriority"
]

@@ -503,3 +504,4 @@ },

"target",
"type"
"type",
"fetchpriority"
],

@@ -506,0 +508,0 @@ "propertyNames": { "$ref": "#/definitions/HTMLLinkAndFetchingAttrs" },

@@ -1232,2 +1232,3 @@ /* tslint:disable */

| 'type'
| 'fetchpriority'
)[];

@@ -1427,2 +1428,3 @@ '#HTMLEmbededAndMediaContentAttrs'?: (

animatable?: boolean;
experimental?: boolean;
}

@@ -44,2 +44,8 @@ import htmlSpec from '@markuplint/html-spec';

});
test('img[fetchpriority] (experimental spec)', () => {
const attrs = getAttrSpecs('img', htmlSpec);
const fetchpriority = attrs?.find(attr => attr.name === 'fetchpriority');
expect(fetchpriority?.experimental).toBe(true);
});
});

@@ -177,3 +177,3 @@ import type { AttributeJSON } from '.';

caseSensitive?: true;
experimental?: true;
experimental?: boolean;
obsolete?: true;

@@ -180,0 +180,0 @@ deprecated?: boolean;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc