@markuplint/astro-parser 3.9.0 → 3.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/astro-parser",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "astro parser for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@astrojs/parser": "0.22.2",
20
- "@markuplint/html-parser": "3.10.0",
20
+ "@markuplint/html-parser": "3.10.1",
21
21
  "@markuplint/ml-ast": "3.2.0",
22
- "@markuplint/parser-utils": "3.10.0",
23
- "astro-eslint-parser": "^0.14.0",
24
- "tslib": "^2.6.0"
22
+ "@markuplint/parser-utils": "3.10.1",
23
+ "astro-eslint-parser": "^0.15.0",
24
+ "tslib": "^2.6.2"
25
25
  },
26
- "gitHead": "4ab20276db48a6acb29a923ea8666890ca853442"
26
+ "gitHead": "09100b8baa14dd930602daa458197322197c79c2"
27
27
  }
@@ -110,6 +110,7 @@ div {
110
110
  offset: 93,
111
111
  },
112
112
  },
113
+ raw: '"v"',
113
114
  type: 'attribute',
114
115
  value: 'v',
115
116
  },
@@ -227,6 +228,7 @@ it('Attr and Template Directive', () => {
227
228
  kind: 'empty',
228
229
  name: 'a',
229
230
  value: '',
231
+ raw: '',
230
232
  position: { start: { column: 6, line: 1, offset: 5 } },
231
233
  },
232
234
  {
@@ -234,6 +236,7 @@ it('Attr and Template Directive', () => {
234
236
  kind: 'quoted',
235
237
  name: 'b',
236
238
  value: 'c',
239
+ raw: 'c',
237
240
  position: { start: { column: 8, line: 1, offset: 7 } },
238
241
  },
239
242
  {
@@ -241,6 +244,7 @@ it('Attr and Template Directive', () => {
241
244
  kind: 'quoted',
242
245
  name: 'd',
243
246
  value: 'e',
247
+ raw: '"e"',
244
248
  position: { start: { column: 12, line: 1, offset: 11 } },
245
249
  },
246
250
  {
@@ -248,6 +252,7 @@ it('Attr and Template Directive', () => {
248
252
  kind: 'template-literal',
249
253
  name: 'f',
250
254
  value: 'g',
255
+ raw: '',
251
256
  position: { start: { column: 18, line: 1, offset: 17 } },
252
257
  },
253
258
  {
@@ -255,6 +260,7 @@ it('Attr and Template Directive', () => {
255
260
  kind: 'empty',
256
261
  name: 'x:y',
257
262
  value: '',
263
+ raw: '',
258
264
  position: { start: { column: 24, line: 1, offset: 23 } },
259
265
  },
260
266
  {
@@ -262,6 +268,7 @@ it('Attr and Template Directive', () => {
262
268
  kind: 'expression',
263
269
  name: 'prop',
264
270
  value: ' prop ',
271
+ raw: '',
265
272
  position: { start: { column: 28, line: 1, offset: 27 } },
266
273
  },
267
274
  ]),
@@ -278,6 +285,7 @@ test('Greater-than sign in attribute value', () => {
278
285
  position: { start: { column: 6, line: 1, offset: 5 } },
279
286
  type: 'attribute',
280
287
  value: 'a>b',
288
+ raw: '"a>b"',
281
289
  },
282
290
  ]),
283
291
  );
@@ -308,6 +316,7 @@ describe('Issues', () => {
308
316
  kind: 'quoted',
309
317
  name: 'lang',
310
318
  value: 'en',
319
+ raw: '"en"',
311
320
  position: { start: { line: 1, column: 7, offset: 6 } },
312
321
  },
313
322
  ],
@@ -347,6 +356,7 @@ describe('Issues', () => {
347
356
  kind: 'quoted',
348
357
  name: 'charset',
349
358
  value: 'utf-8',
359
+ raw: '"utf-8"',
350
360
  position: { start: { line: 3, column: 9, offset: 33 } },
351
361
  },
352
362
  ],
@@ -396,6 +406,7 @@ describe('Issues', () => {
396
406
  kind: 'quoted',
397
407
  name: 'name',
398
408
  value: 'viewport',
409
+ raw: '"viewport"',
399
410
  position: { start: { line: 5, column: 9, offset: 83 } },
400
411
  },
401
412
  {
@@ -403,6 +414,7 @@ describe('Issues', () => {
403
414
  kind: 'quoted',
404
415
  name: 'content',
405
416
  value: 'width=device-width',
417
+ raw: '"width=device-width"',
406
418
  position: { start: { line: 5, column: 25, offset: 99 } },
407
419
  },
408
420
  ],