New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@grammar/xml

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammar/xml - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

45

modules/grammar-xml.d.ts

@@ -1,2 +0,2 @@

import spellu from './spellu-engine';
import $ from './spellu-engine';
declare namespace grammar$xml { }

@@ -20,16 +20,16 @@ declare namespace grammar$xml {

const enum Syntax {
XmlDeclarationOpenToken = "xml.token.XmlDeclaration.L",
XmlDeclarationCloseToken = "xml.token.XmlDeclaration.R",
MarkupDeclarationOpenToken = "xml.token.MarkupDeclaration.L",
MarkupDeclarationCloseToken = "xml.token.MarkupDeclaration.R",
MarkupDeclarationKeywordToken = "xml.token.MarkupDeclaration.keyword",
DoubleHyphenToken = "xml.token.doublehyphen",
TagOpenToken = "xml.token.<",
TagCloseToken = "xml.token.>",
SlashToken = "xml.token./",
EqualToken = "xml.token.="
XmlDeclarationOpenToken = "token.xml.XmlDeclaration.L",
XmlDeclarationCloseToken = "token.xml.XmlDeclaration.R",
MarkupDeclarationOpenToken = "token.xml.MarkupDeclaration.L",
MarkupDeclarationCloseToken = "token.xml.MarkupDeclaration.R",
MarkupDeclarationKeywordToken = "token.xml.MarkupDeclaration.keyword",
DoubleHyphenToken = "token.xml.doublehyphen",
TagOpenToken = "token.xml.<",
TagCloseToken = "token.xml.>",
SlashToken = "token.xml./",
EqualToken = "token.xml.="
}
interface Node extends spellu.Node {
interface Node extends $.Node {
}
interface Token extends spellu.Token {
interface Token extends $.Token {
}

@@ -84,18 +84,19 @@ interface Document extends Node {

declare namespace grammar$xml {
const recipe: spellu.Recipe;
const recipe: $.Recipe;
}
declare namespace grammar$xml.processors {
const raw: spellu.Processor;
const cst: $.Processor;
}
declare namespace grammar$xml.processors {
const cst: spellu.Processor;
const ast: $.Processor;
}
declare namespace grammar$xml {
enum ProcessorKind {
Raw = "raw",
CST = "cst"
enum ProcessorSuite {
CST = "cst",
AST = "ast"
}
function prepare(processor?: ProcessorKind): spellu.Board;
function build<V = Document>(source: spellu.Source, processor?: ProcessorKind): V | null;
function tokens(source: spellu.Source): Token[] | null;
function selectProcessorSuite(suite: ProcessorSuite): $.Processor[];
function scan<V>(source: string | $.Source, suite?: ProcessorSuite, rule?: string, options?: Partial<$.ScanOptions>): V;
function tokens(source: string | $.Source, options?: Partial<$.ScanOptions & $.ParseOptions>): Token[] | null;
function parse(source: string | $.Source, options?: Partial<$.ScanOptions & $.ParseOptions>): Document | null;
}

@@ -102,0 +103,0 @@ declare namespace grammar$xml {

{
"name": "@grammar/xml",
"version": "0.3.3",
"version": "0.3.4",
"description": "XML 1.1 grammar.",

@@ -20,10 +20,10 @@ "keywords": [

"engines": {
"node": "~13"
"node": ">=14"
},
"dependencies": {
"@spellu/engine": "^0.2.0"
"@spellu/engine": "^0.2.3"
},
"scripts": {
"postinstall": "node scripts/postinstall.js",
"build": "../../node_modules/.bin/esmc"
"build": "yarn run esmc"
},

@@ -33,3 +33,4 @@ "publishConfig": {

"registry": "https://registry.npmjs.org/"
}
},
"gitHead": "3948db0a104f8c2f0a248d112f0f5adb249d54f0"
}

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