UNPKG
loopback-extended-lib
Version:
latest (0.5.2)
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
LoopBack Extended Lib
github.com/Wiredcraft/loopback-extended-lib
Wiredcraft/loopback-extended-lib
loopback-extended-lib
/
lib
/
assertSingleton.js
14 lines
(10 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
const
assert =
require
(
'assert'
);
module
.
exports
= assertSingleton;
/** * Just a check. */
function
assertSingleton
(
lib
) {
assert
(lib ===
this
,
'Fatal: Different register instances got required.'
+
' Please try `npm dedupe` or `npm find-dupes`.'
); }