refactor: remove bluebird as a dependency

This commit is contained in:
Mark Lee 2020-08-01 22:49:36 -07:00
Родитель efaf2f9ca0
Коммит 04065e0309
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 82F864B9B8626D7C
4 изменённых файлов: 4 добавлений и 13 удалений

Просмотреть файл

@ -111,7 +111,7 @@ sign({
})
```
From release v0.4.0-beta, [Bluebird] promises are introduced for better async method calls; the following is also available for use.
From release v0.4.0-beta, Promises are introduced for better async method calls; the following is also available for use.
```javascript
var signAsync = require('electron-osx-sign').signAsync
@ -306,7 +306,7 @@ flat({
})
```
From release v0.4.0-beta, [Bluebird] promises are introduced for better async method calls; the following is also available for use.
From release v0.4.0-beta, Promises are introduced for better async method calls; the following is also available for use.
```javascript
var flatAsync = require('electron-osx-sign').flatAsync
@ -441,7 +441,6 @@ ok 10 app signed
- [electron-packager] - Package your electron app in OS executables (.app, .exe, etc) via JS or CLI
- [electron-builder] - A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
[Bluebird]: https://github.com/petkaantonov/bluebird
[Electron]: https://github.com/electron/electron
[electron-builder]: https://github.com/electron-userland/electron-builder
[electron-packager]: https://github.com/electron-userland/electron-packager

Просмотреть файл

@ -18,7 +18,6 @@
},
"homepage": "https://github.com/electron-userland/electron-osx-sign",
"dependencies": {
"bluebird": "^3.5.0",
"compare-version": "^0.1.2",
"debug": "^4.1.1",
"isbinaryfile": "^4.0.6",

Просмотреть файл

@ -5,12 +5,10 @@
'use strict'
const child = require('child_process')
const { promises: fs } = require('fs')
const path = require('path')
const Promise = require('bluebird')
const debug = require('debug')
const { isBinaryFile } = require('isbinaryfile')
const { promises: fs } = require('fs')
const path = require('path')
/**
* This callback is used across signing and flattening.

Просмотреть файл

@ -177,11 +177,6 @@ bcrypt-pbkdf@^1.0.0:
dependencies:
tweetnacl "^0.14.3"
bluebird@^3.5.0:
version "3.5.5"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.5.tgz#a8d0afd73251effbbd5fe384a77d73003c17a71f"
integrity sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==
brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"