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 3.0.0 to 3.0.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

<a name="3.0.1"></a>
## [3.0.1](https://github.com/guillaumearm/bidon/compare/v3.0.0...v3.0.1) (2018-03-14)
### Bug Fixes
* **cli:** use rollup-plugin-json to import packageJson ([#43](https://github.com/guillaumearm/bidon/issues/43)) ([c2f0d82](https://github.com/guillaumearm/bidon/commit/c2f0d82)), closes [#34](https://github.com/guillaumearm/bidon/issues/34)
<a name="3.0.0"></a>

@@ -2,0 +10,0 @@ # [3.0.0](https://github.com/guillaumearm/bidon/compare/v2.7.0...v3.0.0) (2018-03-14)

20

dist/cli.js
#!/usr/bin/env node
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var version = "3.0.1";
var path = require('path');
var util = require('util');
var fs = _interopDefault(require('fs'));
var readFile = util.promisify(fs.readFile);
var readJsonFile = async function readJsonFile(filePath) {
return JSON.parse((await readFile(filePath, 'utf8')));
};
async function main() {
var packageJsonPath = path.resolve(__dirname, '..', 'package.json');
var _ref = await readJsonFile(packageJsonPath),
version = _ref.version;
function main$1() {
console.warn("v".concat(version));
}
main();
main$1();

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

import { resolve } from 'path';
import { promisify } from 'util';
import fs from 'fs';
var version = "3.0.1";
var readFile = promisify(fs.readFile);
var readJsonFile = async function readJsonFile(filePath) {
return JSON.parse((await readFile(filePath, 'utf8')));
};
async function main() {
var packageJsonPath = resolve(__dirname, '..', 'package.json');
var _ref = await readJsonFile(packageJsonPath),
version = _ref.version;
function main$1() {
console.warn("v".concat(version));
}
export default main;
export default main$1;
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var version = "3.0.1";
var path = require('path');
var util = require('util');
var fs = _interopDefault(require('fs'));
var readFile = util.promisify(fs.readFile);
var readJsonFile = async function readJsonFile(filePath) {
return JSON.parse((await readFile(filePath, 'utf8')));
};
async function main() {
var packageJsonPath = path.resolve(__dirname, '..', 'package.json');
var _ref = await readJsonFile(packageJsonPath),
version = _ref.version;
function main$1() {
console.warn("v".concat(version));
}
module.exports = main;
module.exports = main$1;
{
"name": "bidon",
"version": "3.0.0",
"version": "3.0.1",
"description": "Fake repository for testing ci tools",

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

"rollup-plugin-commonjs": "^9.1.0",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-builtins": "^2.1.2",

@@ -123,0 +124,0 @@ "rollup-plugin-node-resolve": "^3.2.0",

@@ -1,16 +0,6 @@

import { resolve } from 'path';
import { promisify } from 'util';
import fs from 'fs';
const readFile = promisify(fs.readFile);
const readJsonFile = async (filePath) => {
return JSON.parse(await readFile(filePath, 'utf8'))
}
import { version } from '../package.json';
import './empty';
export default async function main() {
const packageJsonPath = resolve(__dirname, '..', 'package.json');
const { version } = await readJsonFile(packageJsonPath);
export default function main() {
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