Skip to content

Commit d0e3d04

Browse files
authored
Merge pull request #4 from rdkcentral/fix/export-library
Changed rollup config to enable ThunderJS to be imported in a (Lightn…
2 parents f0eeda9 + b0e8fd5 commit d0e3d04

11 files changed

+441
-25
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
**/node_modules
22
**/dist
3+
**/module
4+
**/alias
File renamed without changes.

.vscode/settings.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"editor.formatOnSave": false,
33
"eslint.validate": [
4-
{ "language": "javascript", "autoFix": true},
4+
"javascript"
55
],
66
"eslint.alwaysShowStatus": true,
7-
"eslint.autoFixOnSave": true,
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": true
9+
},
810
}

alias/ws.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* If not stated otherwise in this file or this component's LICENSE file the
3+
* following copyright and licenses apply:
4+
*
5+
* Copyright 2020 RDK Management
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the License);
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
20+
let ws = null
21+
22+
if (typeof WebSocket !== 'undefined') {
23+
ws = WebSocket
24+
}
25+
26+
module.exports = ws

dist/thunderJS.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)