@chatopera/ms-parser
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _debug = require('debug'); | ||
var _debug2 = _interopRequireDefault(_debug); | ||
var _parseContents = require('./parseContents'); | ||
@@ -32,2 +36,4 @@ | ||
const debug = (0, _debug2.default)('MS:Parser'); | ||
// Whenever a breaking change occurs, update this version number and the corresponding | ||
@@ -39,2 +45,3 @@ // supported version number in SuperScript | ||
const startTime = Date.now(); | ||
debug("parseFile [%s], lang [%s]", path, lang); | ||
_fs2.default.readFile(path, 'utf-8', (err, contents) => { | ||
@@ -41,0 +48,0 @@ if (err) { |
@@ -42,4 +42,9 @@ 'use strict'; | ||
const debug = (0, _debug2.default)('ParseContents'); | ||
const debug = (0, _debug2.default)('MS:Parser:Content'); | ||
var _require = require("./exceptions"); | ||
const ManuScriptSyntaxError = _require.ManuScriptSyntaxError; | ||
const grammars = { | ||
@@ -306,3 +311,3 @@ topic: {}, | ||
console.log("[WARN] parseContents: " + errString); | ||
callback(errString); | ||
callback(new ManuScriptSyntaxError(errString)); | ||
} | ||
@@ -309,0 +314,0 @@ }; |
{ | ||
"name": "@chatopera/ms-parser", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "The parser interface for SuperScript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43170
13
458