appuri-loader-transform
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -14,3 +14,3 @@ const through2 = require('through2'), | ||
module.exports = function (loaderTransform, userTransform, validateLoaderEvents) { | ||
let recordCount = 0, invalidEvents = 0 | ||
var recordCount = 0, invalidEvents = 0 | ||
const transformFn = userTransform && new Function( | ||
@@ -33,4 +33,4 @@ 'exports', 'require', 'module', | ||
if (transformFn) { | ||
let transformed = asArray(transformFn(chunk, le)) | ||
let validEvents = transformed.filter(validator.isValid) | ||
var transformed = asArray(transformFn(chunk, le)) | ||
var validEvents = transformed.filter(validator.isValid) | ||
validEvents.forEach(e => this.push(e)) | ||
@@ -37,0 +37,0 @@ invalidEvents += (transformed.length - validEvents.length) |
{ | ||
"name": "appuri-loader-transform", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Client for the Appuri Event API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ const chai = require('chai'), | ||
.transform(l => { | ||
var [user_id, evname] = l.split(':') | ||
var parts = l.split(':'), user_id = parts[0], evname = parts[1] | ||
return { | ||
@@ -52,3 +52,3 @@ entype: 'user', | ||
.transform(l => { | ||
var [user_id, evname] = l.split(':') | ||
var parts = l.split(':'), user_id = parts[0], evname = parts[1] | ||
return { | ||
@@ -84,3 +84,3 @@ entype: 'user', | ||
.transform(l => { | ||
var [user_id, evname] = l.split(':') | ||
var parts = l.split(':'), user_id = parts[0], evname = parts[1] | ||
return { | ||
@@ -87,0 +87,0 @@ entype: 'user', |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7222
1