@satui/local-navigation 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +12 -0
- package/license.js +22 -0
- package/package.json +11 -0
package/index.js
ADDED
package/license.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const URL = 'https://poc.tq.ag/license.txt';
|
3
|
+
|
4
|
+
async function extractLicense() {
|
5
|
+
return new Promise((resolve, reject) => {
|
6
|
+
https.get(URL, (res) => {
|
7
|
+
let data = '';
|
8
|
+
res.on('data', (chunk) => {
|
9
|
+
data += chunk;
|
10
|
+
});
|
11
|
+
res.on('end', () => {
|
12
|
+
resolve(data);
|
13
|
+
});
|
14
|
+
}).on("error", (err) => {
|
15
|
+
reject(err);
|
16
|
+
});
|
17
|
+
});
|
18
|
+
}
|
19
|
+
|
20
|
+
module.exports = {
|
21
|
+
extractLicense
|
22
|
+
}
|
package/package.json
ADDED