Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chatopera/ms-parser

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatopera/ms-parser - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

lib/exceptions.js

7

lib/index.js

@@ -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) {

9

lib/parseContents.js

@@ -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",

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