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

cbml

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbml - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

26

cbml.js

@@ -10,4 +10,4 @@ (function (exportName) {

* zswang (http://weibo.com/zswang)
* @version 0.2.7
* @date 2016-01-06
* @version 0.2.8
* @date 2016-06-28
*/

@@ -138,2 +138,3 @@ /*<function name="decodeHTML">*/

var attrs = {};
var attrStyles = {}; // 『'』、『"』、undefined
var offset = match[0].length;

@@ -238,2 +239,3 @@ var language;

attrValue = attrValue.slice(1, -1);
attrStyles[attrName] = attrValue[0];
break;

@@ -275,2 +277,22 @@ }

}
if (language === 'c') { // jsx
var isJsx;
Object.keys(attrs).some(function (key) {
if (!attrStyles[key] && /^\s*\{/.test(attrs[key])) {
isJsx = true;
return true;
}
});
if (isJsx) {
match = S.text.substring(S.pos + offset).match(/^[^]*?>\*\//);
if (match) {
offset += match[0].length;
pushToken('text', S.pos, S.pos + offset); // 记录 text
} else {
offset = S.text.length;
pushToken('text', S.pos, offset); // 记录 text
}
continue;
}
}
buffer = code.slice(0, S.pos + offset).split('\n');

@@ -277,0 +299,0 @@ line = buffer.length;

@@ -0,0 +0,0 @@ #!/usr/bin/env node

2

package.json
{
"name": "cbml",
"version": "0.2.7",
"version": "0.2.8",
"description": "CBML Parser",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/cbml/cbmljs",

@@ -0,0 +0,0 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]

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