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

build-url

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-url - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

build-url.d.ts

2

dist/build-url.js
/**
* build-url - A small library that builds a URL given its components
* @version v1.2.0
* @version v1.3.0
* @link https://github.com/steverydz/build-url#readme

@@ -5,0 +5,0 @@ * @license MIT

@@ -1,7 +0,1 @@

/**
* build-url - A small library that builds a URL given its components
* @version v1.2.0
* @link https://github.com/steverydz/build-url#readme
* @license MIT
*/
(function(){"use strict";var r=this,e=r.buildUrl,t=function(r,e){var t,o,i,n=[];if(i=!(!e||!e.lowerCase)&&!!e.lowerCase,null===r?o="":"object"==typeof r?(o="",e=r):o=r,o&&"/"===o[o.length-1]&&(o=o.slice(0,-1)),e){if(e.path){var a=String(e.path).trim();i&&(a=a.toLowerCase()),0===a.indexOf("/")?o+=a:o+="/"+a}if(e.queryParams){for(t in e.queryParams){var s;if(e.queryParams.hasOwnProperty(t)&&void 0!==e.queryParams[t])s=i?encodeURIComponent(String(e.queryParams[t]).trim().toLowerCase()):encodeURIComponent(String(e.queryParams[t]).trim()),n.push(t+"="+s)}o+="?"+n.join("&")}e.hash&&(o+=i?"#"+String(e.hash).trim().toLowerCase():"#"+String(e.hash).trim())}return o};t.noConflict=function(){return r.buildUrl=e,t},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=t),exports.buildUrl=t):r.buildUrl=t}).call(this);

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

const header = require('gulp-header');
const pump = require('pump');
const pkg = require('./package.json');

@@ -16,21 +17,22 @@ const banner = [

gulp.task('uglify', () => {
gulp.src('./src/build-url.js')
.pipe(uglify())
.pipe(rename('build-url.min.js'))
.pipe(header(banner, { pkg: pkg }))
.pipe(gulp.dest('./dist'));
});
function compress(cb) {
pump([
gulp.src('./src/build-url.js'),
rename('build-url.min.js'),
uglify(),
gulp.dest('./dist')
], cb);
}
gulp.task('copy', () => {
gulp.src('./src/build-url.js')
.pipe(header(banner, { pkg: pkg }))
.pipe(gulp.dest('./dist'));
});
function copy(cb) {
pump([
gulp.src('./src/build-url.js'),
header(banner, { pkg: pkg }),
gulp.dest('./dist')
], cb);
}
gulp.task('watch', () => {
gulp.watch('./src/build-url.js', ['build']);
});
gulp.task('build', ['uglify', 'copy']);
gulp.task('default', ['build', 'watch']);
exports.default = gulp.series(
compress,
copy
);
{
"name": "build-url",
"version": "1.2.0",
"version": "1.3.0",
"description": "A small library that builds a URL given its components",

@@ -37,8 +37,9 @@ "main": "./dist/build-url.js",

"devDependencies": {
"gulp": "^3.9.1",
"gulp": "4.0.0",
"gulp-header": "2.0.5",
"gulp-rename": "1.4.0",
"gulp-uglify": "3.0.1",
"jasmine": "3.2.0"
"jasmine": "3.3.0",
"pump": "3.0.0"
}
}

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