We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7f474 commit 02a025eCopy full SHA for 02a025e
packages/rest/index.d.ts
@@ -0,0 +1,6 @@
1
+// Copyright IBM Corp. 2017. All Rights Reserved.
2
+// Node module: @loopback/rest
3
+// This file is licensed under the MIT License.
4
+// License text available at https://opensource.org/licenses/MIT
5
+
6
+export * from './lib';
packages/rest/index.js
@@ -0,0 +1,9 @@
+const nodeMajorVersion = +process.versions.node.split('.')[0];
7
+module.exports = nodeMajorVersion >= 7 ?
8
+ require('./lib') :
9
+ require('./lib6');
0 commit comments