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

bidon

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bidon - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

dist/cli.js

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="2.5.0"></a>
# [2.5.0](https://github.com/guillaumearm/bidon/compare/v2.4.0...v2.5.0) (2018-03-13)
### Features
* **build:** add cli commonjs bundle in github release ([3bfaed7](https://github.com/guillaumearm/bidon/commit/3bfaed7))
* **build:** use rollup to build cli.js ([8070fff](https://github.com/guillaumearm/bidon/commit/8070fff)), closes [#28](https://github.com/guillaumearm/bidon/issues/28)
* **build:** use rollup to make commonjs, es and umd bundles ([e06629d](https://github.com/guillaumearm/bidon/commit/e06629d)), closes [#28](https://github.com/guillaumearm/bidon/issues/28)
<a name="2.4.0"></a>

@@ -2,0 +12,0 @@ # [2.4.0](https://github.com/guillaumearm/bidon/compare/v2.3.1...v2.4.0) (2018-03-13)

5

cli.js

@@ -1,4 +0,3 @@

#!/usr/bin/env node
import bidon from './src';
// eslint-disable-next-line node/no-missing-require
require('./lib')();
bidon();

45

dist/index.js
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["path", "util", "fs", "./empty"], factory);
} else if (typeof exports !== "undefined") {
factory(require("path"), require("util"), require("fs"), require("./empty"));
} else {
var mod = {
exports: {}
};
factory(global.path, global.util, global.fs, global.empty);
global.index = mod.exports;
}
})(this, function (_path, _util, _fs, _empty) {
"use strict";
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('path'), require('util'), require('fs')) :
typeof define === 'function' && define.amd ? define(['path', 'util', 'fs'], factory) :
(global.Bidon = factory(global.path,global.util,global.fs));
}(this, (function (path,util,fs) { 'use strict';
_fs = _interopRequireDefault(_fs);
fs = fs && fs.hasOwnProperty('default') ? fs['default'] : fs;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var __dirname = '/home/circleci/project/src';
var readFile = (0, _util.promisify)(_fs.default.readFile);
var readFile = util.promisify(fs.readFile);
var readJsonFile = async function readJsonFile(filePath) {
return JSON.parse((await readFile(filePath, 'utf8')));
};
var readJsonFile = async function readJsonFile(filePath) {
return JSON.parse((await readFile(filePath, 'utf8')));
};
async function main() {
var packageJsonPath = path.resolve(__dirname, '..', 'package.json');
module.exports = async function main() {
var packageJsonPath = (0, _path.resolve)(__dirname, '..', 'package.json');
var _ref = await readJsonFile(packageJsonPath),
version = _ref.version;
var _ref = await readJsonFile(packageJsonPath),
version = _ref.version;
console.warn("v".concat(version));
}
console.warn("v".concat(version));
};
});
return main;
})));

@@ -1,22 +0,19 @@

"use strict";
'use strict';
var _path = require("path");
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _util = require("util");
var path = require('path');
var util = require('util');
var fs = _interopDefault(require('fs'));
var _fs = _interopRequireDefault(require("fs"));
var __dirname = '/home/circleci/project/src';
require("./empty");
var readFile = util.promisify(fs.readFile);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var readFile = (0, _util.promisify)(_fs.default.readFile);
var readJsonFile = async function readJsonFile(filePath) {
return JSON.parse((await readFile(filePath, 'utf8')));
};
async function main() {
var packageJsonPath = path.resolve(__dirname, '..', 'package.json');
module.exports = async function main() {
var packageJsonPath = (0, _path.resolve)(__dirname, '..', 'package.json');
var _ref = await readJsonFile(packageJsonPath),

@@ -26,2 +23,4 @@ version = _ref.version;

console.warn("v".concat(version));
};
}
module.exports = main;
{
"name": "bidon",
"version": "2.4.0",
"version": "2.5.0",
"description": "Fake repository for testing ci tools",

@@ -9,3 +9,3 @@ "main": "lib/index.js",

"bin": {
"bidon": "cli.js"
"bidon": "dist/cli.js"
},

@@ -23,7 +23,6 @@ "files": [

"scripts": {
"build:cjs": "BABEL_ENV=cjs babel src --out-dir lib",
"build:umd": "BABEL_ENV=umd babel src --out-dir dist",
"build": "npm run build:cjs && npm run build:umd",
"start": "NODE_ENV=dev babel-node cli.js",
"build": "rollup -c && chmod +x ./dist/cli.js",
"lint": "eslint .",
"test": "npm run build && ./cli.js",
"test": "npm run build && ./dist/cli.js",
"test:ci": "npm run lint && npm run test",

@@ -66,3 +65,3 @@ "prepublishOnly": "npm run clean && npm run build",

"path": "lib/index.js",
"label": "commonJS distribution"
"label": "library (commonJS distribution)"
},

@@ -72,3 +71,3 @@ {

"path": "dist/index.js",
"label": "UMD distribution"
"label": "library (UMD distribution)"
},

@@ -78,3 +77,8 @@ {

"path": "es/index.js",
"label": "ES distribution"
"label": "library (ES distribution)"
},
{
"name": "cli.js",
"path": "dist/cli.js",
"label": "CLI (commonJS distribution)"
}

@@ -123,2 +127,9 @@ ]

"rimraf": "^2.6.2",
"rollup": "^0.56.5",
"rollup-plugin-babel": "^4.0.0-beta.2",
"rollup-plugin-cli": "^0.1.5",
"rollup-plugin-commonjs": "^9.1.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.2.0",
"rollup-plugin-node-resolve": "^3.2.0",
"semantic-release": "^15.0.2"

@@ -125,0 +136,0 @@ },

@@ -12,6 +12,6 @@ import { resolve } from 'path';

module.exports = async function main() {
export default async function main() {
const packageJsonPath = resolve(__dirname, '..', 'package.json');
const { version } = await readJsonFile(packageJsonPath);
console.warn(`v${version}`);
};
}
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