mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-30 15:55:26 +02:00
Fix:Include Watcher as lib with no dependencies and fix tiny-readdir bug #610
This commit is contained in:
parent
160dac109d
commit
ec6e70725c
34 changed files with 2187 additions and 281 deletions
15
server/libs/watcher/is-primitive.js
Normal file
15
server/libs/watcher/is-primitive.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*!
|
||||
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
||||
*
|
||||
* Copyright (c) 2014-present, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = function isPrimitive(val) {
|
||||
if (typeof val === 'object') {
|
||||
return val === null;
|
||||
}
|
||||
return typeof val !== 'function';
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue