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.1.0 to 3.0.0-alpha.82

lib/dom-traverse/accname-computation.d.ts

22

lib/index.d.ts

@@ -1,7 +0,17 @@

export * from './permitted-structres';
export * from './attributes';
export * from './get-attr-specs';
export * from './get-spec-by-tag-name';
export * from './get-spec';
export * from './get-ns';
export * from './dom-traverse/accname-computation';
export * from './dom-traverse/get-attr-specs';
export * from './dom-traverse/get-computed-role';
export * from './dom-traverse/get-implicit-role';
export * from './dom-traverse/get-permitted-roles';
export * from './dom-traverse/get-spec';
export * from './dom-traverse/has-required-owned-elements';
export * from './specs/aria-specs';
export * from './specs/content-model-category-to-tag-names';
export * from './specs/get-role-spec';
export * from './specs/get-spec-by-tag-name';
export * from './specs/schema-to-spec';
export * from './types';
export * from './types/aria';
export * from './types/attributes';
export * from './types/permitted-structres';
export * from './utils/resolve-namespace';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
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("./dom-traverse/accname-computation"), exports);
tslib_1.__exportStar(require("./dom-traverse/get-attr-specs"), exports);
tslib_1.__exportStar(require("./dom-traverse/get-computed-role"), exports);
tslib_1.__exportStar(require("./dom-traverse/get-implicit-role"), exports);
tslib_1.__exportStar(require("./dom-traverse/get-permitted-roles"), exports);
tslib_1.__exportStar(require("./dom-traverse/get-spec"), exports);
tslib_1.__exportStar(require("./dom-traverse/has-required-owned-elements"), exports);
tslib_1.__exportStar(require("./specs/aria-specs"), exports);
tslib_1.__exportStar(require("./specs/content-model-category-to-tag-names"), exports);
tslib_1.__exportStar(require("./specs/get-role-spec"), exports);
tslib_1.__exportStar(require("./specs/get-spec-by-tag-name"), exports);
tslib_1.__exportStar(require("./specs/schema-to-spec"), exports);
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./types/aria"), exports);
tslib_1.__exportStar(require("./types/attributes"), exports);
tslib_1.__exportStar(require("./types/permitted-structres"), exports);
tslib_1.__exportStar(require("./utils/resolve-namespace"), exports);

@@ -1,5 +0,8 @@

declare type NamedDefinition = string | {
name: string;
};
declare type NamedDefinition =
| string
| {
name: string;
};
export declare function getNS(namespaceURI: string | null): 'svg' | 'mml' | 'html';
export declare function mergeArray<T extends NamedDefinition>(a: T[], b: T[] | null | undefined): T[];
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeArray = void 0;
exports.mergeArray = exports.getNS = void 0;
function getNS(namespaceURI) {
switch (namespaceURI) {
case 'http://www.w3.org/2000/svg': {
return 'svg';
}
case 'http://www.w3.org/1998/Math/MathML': {
return 'mml';
}
default: {
return 'html';
}
}
}
exports.getNS = getNS;
function mergeArray(a, b) {

@@ -5,0 +19,0 @@ if (!b) {

{
"name": "@markuplint/ml-spec",
"version": "2.1.0",
"version": "3.0.0-alpha.82+6cde1134",
"description": "Types and schema that specs of the Markup languages for markuplint",

@@ -19,14 +19,18 @@ "repository": "git@github.com:markuplint/markuplint.git",

"schema:gen": "ts-node ./gen/gen.ts; prettier --write './schemas/*.json';",
"schema:structures": "json2ts ./schemas/permitted-structures.schema.json > ./src/permitted-structres.ts; prettier --write ./src/permitted-structres.ts; eslint --fix --config ../../../.eslintrc ./src/permitted-structres.ts",
"schema:attributes": "json2ts ./schemas/attributes.schema.json --cwd ./schemas > ./src/attributes.ts; prettier --write ./src/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/attributes.ts",
"schema": "yarn schema:gen; yarn schema:structures; yarn schema:attributes; tsc;"
"schema:content-models": "json2ts ./schemas/content-models.schema.json > ./src/types/permitted-structres.ts; prettier --write ./src/types/permitted-structres.ts; eslint --fix --config ../../../.eslintrc ./src/types/permitted-structres.ts",
"schema:attributes": "json2ts ./schemas/attributes.schema.json --cwd ./schemas > ./src/types/attributes.ts; prettier --write ./src/types/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/types/attributes.ts",
"schema:aria": "json2ts ./schemas/aria.schema.json --cwd ./schemas > ./src/types/aria.ts; prettier --write ./src/types/aria.ts; eslint --fix --config ../../../.eslintrc ./src/types/aria.ts",
"schema": "run-s schema:*"
},
"dependencies": {
"@markuplint/ml-ast": "^2.0.0",
"dom-accessibility-api": "^0.5.14",
"tslib": "^2.3.1"
},
"devDependencies": {
"@markuplint/test-tools": "3.0.0-alpha",
"@markuplint/types": "2.1.0",
"json-schema-to-typescript": "^10.1.5"
},
"gitHead": "0321513e36cc74929c41e06e1f58c43ff7602556"
"gitHead": "6cde113402758a8fdbd6a0fcf98e78efd2cdb778"
}
{
"definitions": {
"AttributeName": { "type": "string", "pattern": "^(?:(xml|xlink):)?[a-z][a-zA-Z0-9-]*$" },
"AttributeCondition": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": ["ancestor"],
"properties": { "ancestor": { "$ref": "#/definitions/Selectors" } }
},
{
"type": "object",
"additionalProperties": false,
"required": ["self"],
"properties": { "self": { "$ref": "#/definitions/Selectors" } }
}
]
},
"AttributeCondition": { "$ref": "#/definitions/Selectors" },
"Selectors": {

@@ -27,7 +12,4 @@ "oneOf": [{ "type": "string" }, { "type": "array", "minItems": 2, "items": { "type": "string" } }]

"additionalProperties": false,
"required": ["ref"],
"minProperties": 2,
"minProperties": 1,
"properties": {
"_TODO_": { "type": "string" },
"ref": { "type": "string", "format": "uri" },
"type": {

@@ -217,6 +199,5 @@ "oneOf": [

"additionalProperties": false,
"required": ["tag", "ref", "attributes"],
"required": ["tag", "attributes"],
"properties": {
"tag": { "type": "string" },
"ref": { "type": "string", "format": "uri" },
"global": { "$ref": "#/definitions/GlobalAttributes" },

@@ -223,0 +204,0 @@ "attributes": { "$ref": "#/definitions/Attributes" }

@@ -1,7 +0,17 @@

export * from './permitted-structres';
export * from './attributes';
export * from './get-attr-specs';
export * from './get-spec-by-tag-name';
export * from './get-spec';
export * from './get-ns';
export * from './dom-traverse/accname-computation';
export * from './dom-traverse/get-attr-specs';
export * from './dom-traverse/get-computed-role';
export * from './dom-traverse/get-implicit-role';
export * from './dom-traverse/get-permitted-roles';
export * from './dom-traverse/get-spec';
export * from './dom-traverse/has-required-owned-elements';
export * from './specs/aria-specs';
export * from './specs/content-model-category-to-tag-names';
export * from './specs/get-role-spec';
export * from './specs/get-spec-by-tag-name';
export * from './specs/schema-to-spec';
export * from './types';
export * from './types/aria';
export * from './types/attributes';
export * from './types/permitted-structres';
export * from './utils/resolve-namespace';

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