Comparing version 0.2.0 to 0.3.0
{ | ||
"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
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
910672
257
3
+ Addedbase64-js@0.0.8
+ Addedbrfs@^1.3.0
+ Addedacorn@7.4.1(transitive)
+ Addedbase64-js@0.0.8(transitive)
+ Addedbrfs@1.6.1(transitive)
+ Addedbuffer-equal@0.0.1(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddeep-is@0.1.4(transitive)
+ Addedduplexer2@0.1.4(transitive)
+ Addedescodegen@1.9.12.1.0(transitive)
+ Addedesprima@3.1.34.0.1(transitive)
+ Addedestraverse@4.3.05.3.0(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedfalafel@2.2.5(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhas@1.0.4(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedisarray@1.0.02.0.5(transitive)
+ Addedlevn@0.3.0(transitive)
+ Addedmagic-string@0.22.5(transitive)
+ Addedmerge-source-map@1.0.4(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedobject-inspect@1.4.1(transitive)
+ Addedoptionator@0.8.3(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedquote-stream@1.0.2(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedshallow-copy@0.0.1(transitive)
+ Addedsource-map@0.5.70.6.1(transitive)
+ Addedstatic-eval@2.1.1(transitive)
+ Addedstatic-module@2.2.5(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedtiny-inflate@1.0.3(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunicode-trie@0.3.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvlq@0.2.3(transitive)
+ Addedword-wrap@1.2.5(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedunicode-trie@0.2.0(transitive)
Updatedunicode-trie@^0.3.0