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

de-dupe

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

de-dupe - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

yarn.lock

8

cli.js

@@ -19,3 +19,3 @@ 'use strict';

'void', 'volatile', 'while', 'with', 'yield'];
var Dedupe = (function () {
var Dedupe = /** @class */ (function () {
function Dedupe(options) {

@@ -366,2 +366,5 @@ this.attempt = 0;

}
function noop() {
// do nothing
}
function processFiles(opt) {

@@ -376,3 +379,4 @@ var _loop_1 = function (file) {

var dedupedCode = dedupe.dedupe(code).code;
fs.writeFile(file.replace('.js', '') + '.min.js', dedupedCode);
var minFileName = file.replace('.js', '') + '.min.js';
fs.writeFile(minFileName, dedupedCode, noop);
}

@@ -379,0 +383,0 @@ });

@@ -17,3 +17,3 @@ 'use strict';

'void', 'volatile', 'while', 'with', 'yield'];
var Dedupe = (function () {
var Dedupe = /** @class */ (function () {
function Dedupe(options) {

@@ -20,0 +20,0 @@ this.attempt = 0;

{
"name": "de-dupe",
"bin": ".bin/de-dupe",
"version": "0.0.14",
"version": "0.0.15",
"description": "Deduplicate strings from javascript assets",

@@ -33,14 +33,14 @@ "main": "index.js",

"dependencies": {
"typescript": "^2.3.2"
"typescript": "2.6.2"
},
"devDependencies": {
"@types/chai": "^3.5.2",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.18",
"chai": "^3.5.0",
"mocha": "^3.3.0",
"rollup": "^0.41.6",
"rollup-plugin-typescript": "^0.8.1",
"tslint": "^5.2.0"
"@types/chai": "4.1.0",
"@types/mocha": "2.2.46",
"@types/node": "9.3.0",
"chai": "4.1.2",
"mocha": "4.1.0",
"rollup": "0.54.0",
"rollup-plugin-typescript": "0.8.1",
"tslint": "5.9.1"
}
}
var typescript = require('rollup-plugin-typescript');
module.exports = {
entry: './src/index.ts',
dest: 'index.js',
format: 'cjs',
moduleId: 'de-dupe',
moduleName: 'dedupe',
input: './src/index.ts',
output: {
file: 'index.js',
format: 'cjs',
},
external: [

@@ -10,0 +10,0 @@ 'chai',

@@ -18,2 +18,6 @@ import { readFile, writeFile } from 'fs';

function noop() {
// do nothing
}
function processFiles(opt: typeof options) {

@@ -27,3 +31,4 @@ for (const file of opt.files) {

const dedupedCode = dedupe.dedupe(code).code;
writeFile(file.replace('.js', '') + '.min.js', dedupedCode);
const minFileName = file.replace('.js', '') + '.min.js';
writeFile(minFileName, dedupedCode, noop);
}

@@ -30,0 +35,0 @@ });

@@ -19,3 +19,3 @@ 'use strict';

'void', 'volatile', 'while', 'with', 'yield'];
var Dedupe = (function () {
var Dedupe = /** @class */ (function () {
function Dedupe(options) {

@@ -22,0 +22,0 @@ this.attempt = 0;

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