Skip to content

Commit fe28a51

Browse files
author
Ajit Kumar
committed
chore(update pyodide)
1 parent cca41f2 commit fe28a51

18 files changed

Lines changed: 8635 additions & 4361 deletions

.DS_Store

2 KB
Binary file not shown.

.vscode/pack-zip.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const jszip = require('jszip');
55
const iconFile = path.join(__dirname, '../icon.png');
66
const pluginJSON = path.join(__dirname, '../plugin.json');
77
const distFolder = path.join(__dirname, '../dist');
8+
const changelogMd = path.join(__dirname, '../changelog.md');
89
let readmeDotMd = path.join(__dirname, '../readme.md');
910

1011
if (!fs.existsSync(readmeDotMd)) {
@@ -18,14 +19,15 @@ const zip = new jszip();
1819
zip.file('icon.png', fs.readFileSync(iconFile));
1920
zip.file('plugin.json', fs.readFileSync(pluginJSON));
2021
zip.file('readme.md', fs.readFileSync(readmeDotMd));
22+
zip.file('changelog.md', fs.readFileSync(changelogMd));
2123

2224
loadFile('', distFolder);
2325

2426
zip
2527
.generateNodeStream({ type: 'nodebuffer', streamFiles: true })
26-
.pipe(fs.createWriteStream(path.join(__dirname, '../dist.zip')))
28+
.pipe(fs.createWriteStream(path.join(__dirname, '../plugin.zip')))
2729
.on('finish', () => {
28-
console.log('dist.zip written.');
30+
console.log('plugin.zip written.');
2931
});
3032

3133
function loadFile(root, folder) {

.vscode/start-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-console */
2-
const { fork, spawn } = require('child_process');
2+
const { fork } = require('child_process');
33
const path = require('path');
44

55
main();

.vscode/start-server.js

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,49 +19,12 @@ async function main() {
1919
cors: true,
2020
root: '../',
2121
ignore: 'node_modules,platforms,plugins',
22-
file: 'index.html',
2322
https: {
2423
cert: fs.readFileSync(serverCrt),
2524
key: fs.readFileSync(serverKey),
2625
passphrase: '1234',
2726
},
28-
middleware: [(req, res, next) => {
29-
const url = req.originalUrl;
30-
const www = '../platforms/android/app/src/main/assets/www/';
31-
32-
if (url === '/cordova.js') {
33-
const file = path.resolve(__dirname, www, 'cordova.js');
34-
sendFile(res, file);
35-
return;
36-
}
37-
38-
if (url === '/cordova_plugins.js') {
39-
const file = path.resolve(__dirname, www, 'cordova_plugins.js');
40-
sendFile(res, file);
41-
return;
42-
}
43-
44-
next();
45-
}],
4627
});
4728

4829
process.send('OK');
4930
}
50-
51-
function sendFile(res, filePath) {
52-
if (fs.existsSync(filePath)) {
53-
const stat = fs.statSync(filePath);
54-
55-
res.writeHead(200, {
56-
'Content-Type': 'application/javascript',
57-
'Content-Length': stat.size,
58-
});
59-
60-
const readStream = fs.createReadStream(filePath);
61-
readStream.pipe(res);
62-
return;
63-
}
64-
65-
res.writeHead(404, { 'Content-Type': 'text/plain' });
66-
res.end(`ERROR cannot get ${filePath}`);
67-
}

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Acode Python Plugin Changelog
2+
3+
## 1.1.2
4+
5+
- Updated Pyodide library to 0.28.1
6+
7+
## 1.1.1
8+
9+
- Initial release

dist/lib/package.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"name": "pyodide",
3+
"version": "0.28.1",
4+
"description": "The Pyodide JavaScript package",
5+
"keywords": [
6+
"python",
7+
"webassembly"
8+
],
9+
"homepage": "https://github.com/pyodide/pyodide",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/pyodide/pyodide"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/pyodide/pyodide/issues"
16+
},
17+
"license": "MPL-2.0",
18+
"devDependencies": {
19+
"@types/assert": "^1.5.6",
20+
"@types/expect": "^24.3.0",
21+
"@types/mocha": "^9.1.0",
22+
"@types/node": "^20.8.4",
23+
"@types/ws": "^8.5.3",
24+
"chai": "^4.3.6",
25+
"chai-as-promised": "^7.1.1",
26+
"cross-env": "^7.0.3",
27+
"dts-bundle-generator": "^8.1.1",
28+
"esbuild": "^0.25.0",
29+
"express": "^4.17.3",
30+
"mocha": "^9.0.2",
31+
"npm-run-all": "^4.1.5",
32+
"nyc": "^15.1.0",
33+
"prettier": "^2.2.1",
34+
"sinon": "^18.0.0",
35+
"ts-mocha": "^9.0.2",
36+
"tsd": "^0.24.1",
37+
"typedoc": "^0.27.6",
38+
"typescript": "5.7",
39+
"wabt": "^1.0.32"
40+
},
41+
"main": "pyodide.js",
42+
"exports": {
43+
".": {
44+
"types": "./pyodide.d.ts",
45+
"require": "./pyodide.js",
46+
"import": "./pyodide.mjs"
47+
},
48+
"./ffi": {
49+
"types": "./ffi.d.ts"
50+
},
51+
"./pyodide.asm.wasm": "./pyodide.asm.wasm",
52+
"./pyodide.asm.js": "./pyodide.asm.js",
53+
"./python_stdlib.zip": "./python_stdlib.zip",
54+
"./pyodide.mjs": "./pyodide.mjs",
55+
"./pyodide.js": "./pyodide.js",
56+
"./package.json": "./package.json",
57+
"./pyodide-lock.json": "./pyodide-lock.json"
58+
},
59+
"files": [
60+
"pyodide.asm.js",
61+
"pyodide.asm.wasm",
62+
"python_stdlib.zip",
63+
"pyodide.mjs",
64+
"pyodide.js.map",
65+
"pyodide.mjs.map",
66+
"pyodide.d.ts",
67+
"ffi.d.ts",
68+
"pyodide-lock.json",
69+
"console.html"
70+
],
71+
"browser": {
72+
"child_process": false,
73+
"crypto": false,
74+
"fs": false,
75+
"fs/promises": false,
76+
"path": false,
77+
"url": false,
78+
"vm": false,
79+
"ws": false
80+
},
81+
"scripts": {
82+
"build-inner": "node esbuild.config.inner.mjs",
83+
"build": "tsc --noEmit && node esbuild.config.outer.mjs",
84+
"test": "npm-run-all test:*",
85+
"test:unit": "cross-env TEST_NODE=1 ts-mocha --node-option=experimental-loader=./test/loader.mjs --node-option=experimental-wasm-stack-switching -p tsconfig.test.json \"test/unit/**\"",
86+
"test:node": "cross-env TEST_NODE=1 mocha test/integration/**/*.test.js",
87+
"test:browser": "mocha test/integration/**/*.test.js",
88+
"tsc": "tsc --noEmit",
89+
"coverage": "cross-env TEST_NODE=1 npm-run-all coverage:*",
90+
"coverage:build": "nyc npm run test:node"
91+
},
92+
"mocha": {
93+
"bail": false,
94+
"timeout": 30000,
95+
"full-trace": true,
96+
"inline-diffs": true,
97+
"check-leaks": false,
98+
"global": [
99+
"pyodide",
100+
"page",
101+
"chai"
102+
]
103+
},
104+
"nyc": {
105+
"reporter": [
106+
"html",
107+
"text-summary"
108+
],
109+
"include": [
110+
"*.ts"
111+
],
112+
"all": true,
113+
"clean": true,
114+
"cache": false,
115+
"instrument": false,
116+
"checkCoverage": true,
117+
"statements": 95,
118+
"functions": 95,
119+
"branches": 80,
120+
"lines": 95
121+
},
122+
"tsd": {
123+
"compilerOptions": {
124+
"lib": [
125+
"ES2017",
126+
"DOM"
127+
]
128+
}
129+
},
130+
"dependencies": {
131+
"ws": "^8.5.0"
132+
},
133+
"types": "./pyodide.d.ts",
134+
"engines": {
135+
"node": ">=18.0.0"
136+
}
137+
}

dist/lib/pyodide-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/lib/pyodide.asm.js

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lib/pyodide.asm.wasm

-348 KB
Binary file not shown.

dist/lib/pyodide.js

Lines changed: 3 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)