@markuplint/parser-utils 3.0.0-rc.5 → 3.1.0
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/lib/idl-attributes.js
CHANGED
|
@@ -397,6 +397,22 @@ const idlContentMap = {
|
|
|
397
397
|
yChannelSelector: 'yChannelSelector',
|
|
398
398
|
z: 'z',
|
|
399
399
|
zoomAndPan: 'zoomAndPan',
|
|
400
|
+
/**
|
|
401
|
+
* PerformanceElementTiming API
|
|
402
|
+
*
|
|
403
|
+
* @experimental
|
|
404
|
+
* @see https://wicg.github.io/element-timing/#sec-modifications-DOM
|
|
405
|
+
* @see https://wicg.github.io/element-timing/#sec-elements-exposed
|
|
406
|
+
*/
|
|
407
|
+
elementTiming: 'elementtiming',
|
|
408
|
+
/**
|
|
409
|
+
* IFrame credentialless
|
|
410
|
+
*
|
|
411
|
+
* @experimental
|
|
412
|
+
* @warning No specification found
|
|
413
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/credentialless
|
|
414
|
+
*/
|
|
415
|
+
credentialless: 'credentialless',
|
|
400
416
|
};
|
|
401
417
|
const list = Object.entries(idlContentMap);
|
|
402
418
|
function searchIDLAttribute(name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/parser-utils",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Utility module for markuplint parser plugin",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@markuplint/ml-ast": "3.0.0-rc.5",
|
|
23
|
-
"@markuplint/types": "3.0.0
|
|
23
|
+
"@markuplint/types": "3.0.0",
|
|
24
24
|
"tslib": "^2.4.1",
|
|
25
25
|
"uuid": "^9.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@markuplint/ml-core": "3.x"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "0e75df6944f453bc19d2a6e05ad264788a8dc149"
|
|
31
31
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSpaceBeforeAttrName = void 0;
|
|
4
|
-
const create_token_1 = require("./create-token");
|
|
5
|
-
function getSpaceBeforeAttrName(nameToken, rawCode) {
|
|
6
|
-
const beforeCode = rawCode.slice(0, nameToken.startOffset);
|
|
7
|
-
const beforeAttrMatched = beforeCode.match(/\s+$/m);
|
|
8
|
-
const beforeAttrChar = (beforeAttrMatched === null || beforeAttrMatched === void 0 ? void 0 : beforeAttrMatched[0]) || '';
|
|
9
|
-
const spacesBeforeName = (0, create_token_1.createTokenFromRawCode)(beforeAttrChar, nameToken.startOffset - beforeAttrChar.length, rawCode);
|
|
10
|
-
return spacesBeforeName;
|
|
11
|
-
}
|
|
12
|
-
exports.getSpaceBeforeAttrName = getSpaceBeforeAttrName;
|