@emmetio/action-utils
Advanced tools
@@ -1035,3 +1035,6 @@ 'use strict'; | ||
| else { | ||
| return { syntax, type: 'markup' }; | ||
| return { | ||
| syntax, | ||
| type: editor.syntaxType(syntax) | ||
| }; | ||
| } | ||
@@ -1038,0 +1041,0 @@ } |
@@ -1028,3 +1028,6 @@ import { scan, attributes, createOptions } from '@emmetio/html-matcher'; | ||
| else { | ||
| return { syntax, type: 'markup' }; | ||
| return { | ||
| syntax, | ||
| type: editor.syntaxType(syntax) | ||
| }; | ||
| } | ||
@@ -1031,0 +1034,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| import { UserConfig, MarkupAbbreviation, Options } from 'emmet'; | ||
| import { UserConfig, MarkupAbbreviation, Options, SyntaxType } from 'emmet'; | ||
| import { CSSContext } from './context'; | ||
@@ -55,4 +55,10 @@ import { TextRange } from './utils'; | ||
| /** | ||
| * Check if given syntax is a CSS dialect (including SCSS, LESS etc) | ||
| * Returns Emmet abbreviation type for given syntax | ||
| */ | ||
| syntaxType(syntax: string): SyntaxType; | ||
| /** | ||
| * Check if given syntax is a CSS dialect, e.g. has similar to CSS syntax. | ||
| * For example, SCSS has the same syntax as CSS, but Sass isn’t since it’s | ||
| * indent-based. | ||
| */ | ||
| isCSS(syntax: string): boolean; | ||
@@ -59,0 +65,0 @@ /** |
+1
-1
| { | ||
| "name": "@emmetio/action-utils", | ||
| "version": "1.2.0", | ||
| "version": "1.2.1", | ||
| "description": "Utilities for Emmet actions", | ||
@@ -5,0 +5,0 @@ "main": "./dist/action-utils.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
259128
0.4%2690
0.45%