Comparing version 3.0.0 to 3.0.1
@@ -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) |
#!/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}`); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
11558
26
28