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.0.0 to 2.0.1

8

CHANGELOG.md

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

<a name="2.0.1"></a>
## [2.0.1](https://github.com/guillaumearm/bidon/compare/v2.0.0...v2.0.1) (2018-03-12)
### Bug Fixes
* resolve package.json absolute path ([d3c1779](https://github.com/guillaumearm/bidon/commit/d3c1779))
<a name="2.0.0"></a>

@@ -2,0 +10,0 @@ # [2.0.0](https://github.com/guillaumearm/bidon/compare/v1.1.3...v2.0.0) (2018-03-12)

7

lib/index.js
"use strict";
var _path = require("path");
var _util = require("util");

@@ -16,3 +18,6 @@

module.exports = async function main() {
var _ref = await readJsonFile('./package.json'),
var packageJsonPath = (0, _path.resolve)(__dirname, '..', 'package.json');
console.log(packageJsonPath);
var _ref = await readJsonFile(packageJsonPath),
version = _ref.version;

@@ -19,0 +24,0 @@

2

package.json
{
"name": "bidon",
"version": "2.0.0",
"version": "2.0.1",
"description": "Fake repository for testing ci tools",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,1 +1,2 @@

import { resolve } from 'path';
import { promisify } from 'util';

@@ -10,4 +11,6 @@ import fs from 'fs';

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