Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import defaultParserInterface from '../utils/defaultParserInterface';
import pkg from 'cssom/package.json';
const ID = 'cssom';
export default {
...defaultParserInterface,
id: ID,
displayName: ID,
version: pkg.version,
homepage: pkg.homepage || 'https://github.com/NV/CSSOM',
locationProps: new Set(['__starts', '__ends']),
typeProps: new Set(),
loadParser(callback) {
require(['cssom/lib/parse'], callback);
},
parse(CSSOM, code) {
return CSSOM.parse(code);
},
getNodeName(node) {
return node.constructor.name;
},