update
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var inspect = require('../');
|
||||
|
||||
var test = require('tape');
|
||||
var globalThis = require('globalthis')();
|
||||
|
||||
test('global object', function (t) {
|
||||
/* eslint-env browser */
|
||||
var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
|
||||
t.equal(
|
||||
inspect([globalThis]),
|
||||
'[ { [object ' + expected + '] } ]'
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
interface IUpdate {
|
||||
pkg: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
updateCheckInterval?: number;
|
||||
shouldNotifyInNpmScript?: boolean;
|
||||
distTag?: string;
|
||||
alwaysRun?: boolean;
|
||||
debug?: boolean;
|
||||
}
|
||||
declare const simpleUpdateNotifier: (args: IUpdate) => Promise<void>;
|
||||
export { simpleUpdateNotifier as default };
|
||||
Reference in New Issue
Block a user