Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sindresorhus/open
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.6
Choose a base ref
...
head repository: sindresorhus/open
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.7
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 27, 2021

  1. Copy the full SHA
    b75ebaa View commit details
  2. Meta tweaks

    sindresorhus committed Apr 27, 2021
    Copy the full SHA
    f0c15fe View commit details
  3. 8.0.7

    sindresorhus committed Apr 27, 2021
    Copy the full SHA
    ae885ad View commit details
Showing with 6 additions and 5 deletions.
  1. +1 −1 index.d.ts
  2. +1 −1 index.js
  3. +1 −0 index.test-d.ts
  4. +3 −3 package.json
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="node"/>
import {ChildProcess} from 'child_process';

declare namespace open {
@@ -52,6 +51,7 @@ declare namespace open {
};
}

// eslint-disable-next-line no-redeclare
declare const open: {
/**
An object containing auto-detected binary names for common apps. Useful to work around cross-platform differences.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -221,7 +221,7 @@ const open = async (target, options) => {
};

function detectArchBinary(binary) {
if (typeof binary === 'string') {
if (typeof binary === 'string' || Array.isArray(binary)) {
return binary;
}

1 change: 1 addition & 0 deletions index.test-d.ts
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import {expectType} from 'tsd';
import {ChildProcess} from 'child_process';
import open = require('.');

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const options: open.Options = {};

expectType<Promise<ChildProcess>>(open('foo'));
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open",
"version": "8.0.6",
"version": "8.0.7",
"description": "Open stuff like URLs, files, executables. Cross-platform.",
"license": "MIT",
"repository": "sindresorhus/open",
@@ -53,9 +53,9 @@
"is-wsl": "^2.2.0"
},
"devDependencies": {
"@types/node": "^14.14.27",
"@types/node": "^15.0.0",
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.37.1"
"xo": "^0.39.1"
}
}