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

linebreak

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linebreak - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

6

package.json
{
"name": "linebreak",
"version": "0.2.0",
"version": "0.3.0",
"description": "An implementation of the Unicode Line Breaking Algorithm (UAX #14)",

@@ -21,3 +21,5 @@ "repository": {

"dependencies": {
"unicode-trie": "^0.2.0"
"base64-js": "0.0.8",
"brfs": "^1.3.0",
"unicode-trie": "^0.3.0"
},

@@ -24,0 +26,0 @@ "devDependencies": {

@@ -13,3 +13,3 @@ // Generated by CoffeeScript 1.7.1

request('http://www.unicode.org/Public/6.2.0/ucd/LineBreak.txt', function(err, res, data) {
request('http://www.unicode.org/Public/7.0.0/ucd/LineBreak.txt', function(err, res, data) {
var end, match, matches, rangeEnd, rangeStart, rangeType, start, trie, type, _i, _len;

@@ -16,0 +16,0 @@ matches = data.match(/^[0-9A-F]+(\.\.[0-9A-F]+)?;[A-Z][A-Z0-9]/gm);

// Generated by CoffeeScript 1.7.1
(function() {
var AI, AL, BA, BK, CB, CI_BRK, CJ, CP_BRK, CR, DI_BRK, ID, IN_BRK, LF, LineBreaker, NL, NS, PR_BRK, SA, SG, SP, UnicodeTrie, WJ, XX, characterClasses, classTrie, data, fs, pairTable, _ref, _ref1;
var AI, AL, BA, BK, CB, CI_BRK, CJ, CP_BRK, CR, DI_BRK, ID, IN_BRK, LF, LineBreaker, NL, NS, PR_BRK, SA, SG, SP, UnicodeTrie, WJ, XX, base64, characterClasses, classTrie, data, fs, pairTable, _ref, _ref1;

@@ -9,6 +9,4 @@ UnicodeTrie = require('unicode-trie');

data = fs.readFileSync(__dirname + '/classes.trie');
base64 = require('base64-js');
classTrie = new UnicodeTrie(data);
_ref = require('./classes'), BK = _ref.BK, CR = _ref.CR, LF = _ref.LF, NL = _ref.NL, CB = _ref.CB, BA = _ref.BA, SP = _ref.SP, WJ = _ref.WJ, SP = _ref.SP, BK = _ref.BK, LF = _ref.LF, NL = _ref.NL, AI = _ref.AI, AL = _ref.AL, SA = _ref.SA, SG = _ref.SG, XX = _ref.XX, CJ = _ref.CJ, ID = _ref.ID, NS = _ref.NS, characterClasses = _ref.characterClasses;

@@ -18,2 +16,6 @@

data = base64.toByteArray(fs.readFileSync(__dirname + '/classes.trie', 'base64'));
classTrie = new UnicodeTrie(data);
LineBreaker = (function() {

@@ -20,0 +22,0 @@ var Break, mapClass, mapFirst;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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