New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tokenizr

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tokenizr - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

2

bower.json
{
"name": "tokenizr",
"version": "1.1.7",
"version": "1.1.8",
"description": "String Tokenization Library for JavaScript",

@@ -5,0 +5,0 @@ "main": "lib/tokenizr.js",

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -25,3 +25,3 @@ ** Permission is hereby granted, free of charge, to any person obtaining

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Tokenizr = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Tokenizr = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var excerpt=function(e,r){var t=e.length,n=r-20;n<0&&(n=0);var u=r+20;u>t&&(u=t);var c=function(e){return e.charCodeAt(0).toString(16).toUpperCase()},o=function(e,r,t){return e.substr(r,t).replace(/\\/g,"\\\\").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+c(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+c(e)}).replace(/[\u0100-\u0FFF]/g,function(e){return"\\u0"+c(e)}).replace(/[\u1000-\uFFFF]/g,function(e){return"\\u"+c(e)})};return{prologTrunc:n>0,prologText:o(e,n,r-n),tokenText:o(e,r,1),epilogText:o(e,r+1,u-(r+1)),epilogTrunc:u<t}};exports.default=excerpt;

@@ -28,0 +28,0 @@ },{}],2:[function(_dereq_,module,exports){

{
"name": "tokenizr",
"version": "1.1.7",
"version": "1.1.8",
"description": "String Tokenization Library for JavaScript",

@@ -20,3 +20,3 @@ "keywords": [ "string", "token", "scanner", "lexer" ],

"devDependencies": {
"grunt": "~1.0.1",
"grunt": "~1.0.2",
"grunt-cli": "~1.2.0",

@@ -27,5 +27,5 @@ "grunt-contrib-jshint": "~1.1.0",

"grunt-mocha-test": "~0.13.3",
"mocha": "~4.0.1",
"mocha": "~5.0.0",
"chai": "~4.1.2",
"browserify": "~14.5.0",
"browserify": "~16.0.0",
"babelify": "~8.0.0",

@@ -32,0 +32,0 @@ "babel-core": "~6.26.0",

@@ -114,6 +114,6 @@

})
lexer.rule(/"((?:\\\"|[^\r\n]+)+)"/, (ctx, match) => {
lexer.rule(/"((?:\\"|[^\r\n]+)*)"/, (ctx, match) => {
ctx.accept("string", match[1].replace(/\\"/g, "\""))
})
lexer.rule(/\/\/[^\r\n]+\r?\n/, (ctx, match) => {
lexer.rule(/\/\/[^\r\n]*\r?\n/, (ctx, match) => {
ctx.ignore()

@@ -438,3 +438,3 @@ })

Copyright (c) 2015-2017 Ralf S. Engelschall (http://engelschall.com/)
Copyright (c) 2015-2018 Ralf S. Engelschall (http://engelschall.com/)

@@ -441,0 +441,0 @@ Permission is hereby granted, free of charge, to any person obtaining

@@ -13,6 +13,6 @@ import path from "path"

})
lexer.rule(/"((?:\\\"|[^\r\n]+)+)"/, (ctx, match) => {
lexer.rule(/"((?:\\\"|[^\r\n]+)*)"/, (ctx, match) => {
ctx.accept("string", match[1].replace(/\\"/g, "\""))
})
lexer.rule(/\/\/[^\r\n]+\r?\n/, (ctx, match) => {
lexer.rule(/\/\/[^\r\n]*\r?\n/, (ctx, match) => {
ctx.ignore()

@@ -19,0 +19,0 @@ })

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** Tokenizr -- String Tokenization Library
** Copyright (c) 2015-2017 Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2015-2018 Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

Sorry, the diff of this file is not supported yet

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