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

strtok3

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strtok3 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

19

gulpfile.js

@@ -5,3 +5,3 @@ const gulp = require('gulp');

const mocha = require('gulp-mocha');
const del = require('del');
const sourcemaps = require('gulp-sourcemaps');

@@ -12,16 +12,14 @@ const buildPath = 'lib';

// Not all tasks need to use streams
// A gulpfile is just another node program and you can use any package available on npm
gulp.task('clean', function () {
// You can use multiple globbing patterns as you would with `gulp.src`
return del([buildPath]);
return gulp.src([buildPath], {read: false})
.pipe(clean());
});
gulp.task('compile', ['clean'], function () {
// Minify and copy all JavaScript (except vendor scripts)
// with sourcemaps all the way down
return gulp.src(['src/**/*.ts'])
.pipe(sourcemaps.init()) // generate sourcemaps
.pipe(typescript({
declaration: true, target: 'es5'
})) // ({tmpDir:'.tmp'})
}))
.pipe(sourcemaps.write()) // add the sourcemaps to the .js file
.pipe(gulp.dest(buildPath))

@@ -31,4 +29,2 @@ });

gulp.task('test-compile', ['compile'], function () {
// Minify and copy all JavaScript (except vendor scripts)
// with sourcemaps all the way down
return gulp.src(['test/**/*.ts'])

@@ -40,8 +36,5 @@ .pipe(typescript(), {target: 'es5'})

gulp.task('test', ['test-compile'], function () {
// Minify and copy all JavaScript (except vendor scripts)
// with sourcemaps all the way down
return gulp.src('test', { read: false })
//.pipe(mocha({require: 'ts-node/register'}))
.pipe(mocha())
});

@@ -81,3 +81,3 @@ "use strict";

var buf = new Buffer(length);
return this.streamReader.read(buf, 0, length); // stream cannot skip data
return this.streamReader.read(buf, 0, length).then(function () { return null; }); // stream cannot skip data
};

@@ -84,0 +84,0 @@ return ReadStreamTokenizer;

{
"name": "strtok3",
"version": "0.1.1",
"version": "0.1.2",
"description": "A promise based streaming tokenizer",

@@ -37,9 +37,8 @@ "author": {

"debug": "^2.6.8",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-clean": "^0.3.2",
"gulp-mocha": "^4.3.1",
"gulp-sourcemaps": "^2.6.0",
"gulp-tsc": "^1.3.2",
"mocha": "^3.4.2",
"token-types": "0.0.1",
"ts-node": "^3.1.0",

@@ -52,3 +51,3 @@ "typescript": "^2.4.0",

"fs-extra": "^3.0.1",
"then-read-stream": "^0.0.4",
"then-read-stream": "0.0.6",
"token-types": "0.0.2"

@@ -55,0 +54,0 @@ },

"use strict";
// Test reading an array of bytes.
Object.defineProperty(exports, "__esModule", { value: true });
exports.__esModule = true;
var then_read_stream_1 = require("then-read-stream");

@@ -30,3 +30,3 @@ var Token = require("token-types");

chai_1.assert.fail("Should rejct due to end-of-stream");
}).catch(function (err) {
})["catch"](function (err) {
chai_1.assert.equal(err, then_read_stream_1.StreamReader.EndOfStream);

@@ -367,2 +367,1 @@ });

});
//# sourceMappingURL=test.js.map

@@ -13,3 +13,3 @@ "use strict";

})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.__esModule = true;
var assert = require('assert');

@@ -56,2 +56,1 @@ var stream_1 = require("stream");

exports.SourceStream = SourceStream;
//# sourceMappingURL=util.js.map

@@ -8,3 +8,4 @@ {

"declaration": true,
"target": "es5"
"target": "es5",
"outDir": "lib"
},

@@ -11,0 +12,0 @@ "include": [

Sorry, the diff of this file is not supported yet

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