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

gulp-rename

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rename - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

index.js

@@ -1,2 +0,2 @@

var es = require("event-stream"),
var map = require("map-stream"),
path = require("path");

@@ -45,3 +45,3 @@

return es.map(rename);
return map(rename);
};
{
"name": "gulp-rename",
"version": "0.2.1",
"version": "0.2.2",
"description": "Rename files",

@@ -24,3 +24,3 @@ "keywords": [

"dependencies": {
"event-stream": "*"
"map-stream": "~0.0.4"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -7,3 +7,4 @@ /*global describe, it*/

var gulp = require("gulp"),
var path = require("path"),
gulp = require("gulp"),
rename = require("../");

@@ -21,3 +22,4 @@

stream.on("data", function (file) {
String(file.base + file.relative).should.equal("test/fixtures/hola.md");
var expectedPath = path.resolve("test/fixtures/hola.md");
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -40,3 +42,4 @@ stream.on("end", function () {

stream.on("data", function (file) {
String(file.base + file.relative).should.equal("test/fixtures/hello-hola.txt");
var expectedPath = path.resolve("test/fixtures/hello-hola.txt");
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -61,3 +64,4 @@ stream.on("end", function () {

stream.on("data", function (file) {
String(file.base + file.relative).should.equal("test/fixtures/bonjour-hello-hola.md");
var expectedPath = path.resolve("test/fixtures/bonjour-hello-hola.md");
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -78,3 +82,4 @@ stream.on("end", function () {

stream.on("data", function (file) {
String(file.base + file.relative).should.equal("test/fixtures/hello.txt");
var expectedPath = path.resolve("test/fixtures/hello.txt");
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -97,3 +102,4 @@ stream.on("end", function () {

stream.on("data", function (file) {
String(file.base + file.relative).should.equal("test/fixtures/hello.min.md");
var expectedPath = path.resolve("test/fixtures/hello.min.md");
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -118,3 +124,4 @@ stream.on("end", function () {

stream.on("data", function (file) {
String(file.base + file.relative).should.equal("test/fixtures/bonjour-hello-hola.min.md");
var expectedPath = path.resolve("test/fixtures/bonjour-hello-hola.min.md");
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -129,6 +136,8 @@ stream.on("end", function () {

var path = "test/fixtures/hello.min.txt";
var filePath = "test/fixtures/hello.min.txt";
var obj = function (dir, base, ext) {
dir.should.equal("test/fixtures");
var resolvedDir = path.resolve(dir);
var expectedDir = path.resolve("test/fixtures");
resolvedDir.should.equal(expectedDir);
base.should.equal("hello.min");

@@ -140,7 +149,8 @@ ext.should.equal(".txt");

var stream = gulp.src(path).pipe(rename(obj));
var stream = gulp.src(filePath).pipe(rename(obj));
stream.on("error", done);
stream.on("data", function (file) {
String(file.base + file.relative).should.equal(path);
var expectedPath = path.resolve(filePath);
String(file.base + file.relative).should.equal(expectedPath);
});

@@ -147,0 +157,0 @@ stream.on("end", function () {

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