Skip to content

Commit cca41f2

Browse files
Ajit KumarAjit Kumar
Ajit Kumar
authored and
Ajit Kumar
committed
v1.1.1
1 parent bc95a6b commit cca41f2

17 files changed

+1566
-5055
lines changed

.DS_Store

6 KB
Binary file not shown.

.vscode/getNet.js

+12-17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
const { networkInterfaces } = require('os');
22

33
module.exports = async (mode = 'dev') => {
4-
const { WiFi, Ethernet } = getIp();
5-
const [ip] = WiFi || Ethernet;
4+
const ip = getIp();
65
const port = '5500';
76
const src = `https://${ip || '10.0.0'}:${port}`;
87
console.log('Server starting at: ', src);
@@ -11,20 +10,16 @@ module.exports = async (mode = 'dev') => {
1110

1211
function getIp() {
1312
const nets = networkInterfaces();
14-
const results = {}; // Or just '{}', an empty object
13+
let ip = '';
1514

16-
Object.keys(nets).forEach((name) => {
17-
nets[name].forEach((net) => {
18-
// Skip over non-IPv4 and internal (i.e. 127.0.0.1) addresses
19-
// 'IPv4' is in Node <= 17, from 18 it's a number 4 or 6
20-
const familyV4Value = typeof net.family === 'string' ? 'IPv4' : 4;
21-
if (net.family === familyV4Value && !net.internal) {
22-
if (!results[name]) {
23-
results[name] = [];
24-
}
25-
results[name].push(net.address);
26-
}
27-
});
28-
});
29-
return results;
15+
Object.keys(nets).some((name) => nets[name].find((net) => {
16+
const familyV4Value = typeof net.family === 'string' ? 'IPv4' : 4;
17+
if (net.family === familyV4Value && !net.internal) {
18+
ip = net.address;
19+
return ip;
20+
}
21+
return false;
22+
}));
23+
24+
return ip;
3025
}

.vscode/run-webpack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { spawn } = require('child_process');
33
const path = require('path');
44

5-
const webpack = spawn('npx.cmd', ['webpack', '--mode=development', '--watch'], { cwd: path.resolve(__dirname, '../') });
5+
const webpack = spawn('npx', ['webpack', '--mode=development', '--watch'], { cwd: path.resolve(__dirname, '../') });
66

77
webpack.on('error', (webpackError) => {
88
if (webpackError) {

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
22
"dart.lineLength": 50,
33
"prettier.printWidth": 50,
4+
"cSpell.words": [
5+
"acode",
6+
"deadlyjack",
7+
"distutils",
8+
"micropip",
9+
"Pyodide",
10+
"pyparsing"
11+
],
412
}

dist.zip

3.31 MB
Binary file not shown.

dist/.DS_Store

6 KB
Binary file not shown.

dist/lib/pyodide-lock.json

+1
Large diffs are not rendered by default.

dist/lib/pyodide.asm.js

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

dist/lib/pyodide.asm.wasm

100644100755
1.39 MB
Binary file not shown.

dist/lib/pyodide.js

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

dist/lib/python_stdlib.zip

2.22 MB
Binary file not shown.

dist/main.js

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

dist/worker.js

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

package.json

+14-16
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,29 @@
77
"author": "Ajit <[email protected]>",
88
"license": "MIT",
99
"dependencies": {
10-
"html-tag-js": "^1.1.37"
10+
"html-tag-js": "^1.4.3"
1111
},
1212
"devDependencies": {
13-
"@babel/cli": "^7.21.0",
14-
"@babel/core": "^7.21.3",
15-
"@babel/preset-env": "^7.20.2",
16-
"autoprefixer": "^10.4.14",
17-
"babel-loader": "^9.1.2",
13+
"@babel/cli": "^7.23.9",
14+
"@babel/core": "^7.24.0",
15+
"@babel/preset-env": "^7.24.0",
16+
"autoprefixer": "^10.4.18",
17+
"babel-loader": "^9.1.3",
1818
"jszip": "^3.10.1",
1919
"live-server": "^1.2.2",
20-
"postcss": "^8.4.21",
21-
"postcss-loader": "^7.1.0",
20+
"postcss": "^8.4.35",
21+
"postcss-loader": "^8.1.1",
2222
"raw-loader": "^4.0.2",
23-
"sass": "^1.59.3",
24-
"sass-loader": "^13.2.1",
25-
"style-loader": "^3.3.2",
26-
"webpack": "^5.76.3",
27-
"webpack-cli": "^5.0.1"
23+
"sass": "^1.71.1",
24+
"sass-loader": "^14.1.1",
25+
"style-loader": "^3.3.4",
26+
"webpack": "^5.90.3",
27+
"webpack-cli": "^5.1.4"
2828
},
2929
"scripts": {
3030
"build": "webpack",
3131
"build-release": "webpack --mode production",
3232
"start-dev": "node .vscode/start-dev"
3333
},
34-
"browserslist": [
35-
"> 0.25%, not dead"
36-
]
34+
"browserslist": "cover 100%,not android < 5"
3735
}

plugin.json

+1-14
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,9 @@
22
"id": "acode.plugin.python",
33
"name": "Python",
44
"main": "dist/main.js",
5-
"version": "1.1.0",
5+
"version": "1.1.1",
66
"readme": "README.md",
77
"icon": "icon.png",
8-
"files": [
9-
"worker.js",
10-
"lib/distutils.tar",
11-
"lib/micropip-0.1-py3-none-any.whl",
12-
"lib/packages.json",
13-
"lib/packaging-21.3-py3-none-any.whl",
14-
"lib/pyodide_py.tar",
15-
"lib/pyodide.asm.data",
16-
"lib/pyodide.asm.js",
17-
"lib/pyodide.asm.wasm",
18-
"lib/pyodide.js",
19-
"lib/pyparsing-3.0.7-py3-none-any.whl"
20-
],
218
"author": {
229
"name": "Ajit Kumar",
2310
"email": "[email protected]",

0 commit comments

Comments
 (0)