python-wasm
Advanced tools
+1
-2
@@ -1,2 +0,1 @@ | ||
| import * as python from "@wapython/core"; | ||
| export default python; | ||
| export { init, wasm, repr, exec } from "@wapython/core"; |
+6
-25
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
| Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
| }) : function(o, v) { | ||
| o["default"] = v; | ||
| }); | ||
| var __importStar = (this && this.__importStar) || function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| var python = __importStar(require("@wapython/core")); | ||
| exports.default = python; | ||
| exports.exec = exports.repr = exports.wasm = exports.init = void 0; | ||
| var core_1 = require("@wapython/core"); | ||
| Object.defineProperty(exports, "init", { enumerable: true, get: function () { return core_1.init; } }); | ||
| Object.defineProperty(exports, "wasm", { enumerable: true, get: function () { return core_1.wasm; } }); | ||
| Object.defineProperty(exports, "repr", { enumerable: true, get: function () { return core_1.repr; } }); | ||
| Object.defineProperty(exports, "exec", { enumerable: true, get: function () { return core_1.exec; } }); | ||
| //# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAyC;AACzC,kBAAe,MAAM,CAAC"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsD;AAA9C,4FAAA,IAAI,OAAA;AAAE,4FAAA,IAAI,OAAA;AAAE,4FAAA,IAAI,OAAA;AAAE,4FAAA,IAAI,OAAA"} |
+2
-2
| { | ||
| "name": "python-wasm", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "WebAssembly Python", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "@wapython/core": "^0.3.0" | ||
| "@wapython/core": "^0.3.1" | ||
| }, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
+6
-2
@@ -11,3 +11,3 @@ # python-wasm | ||
| ```sh | ||
| ```js | ||
| $ node | ||
@@ -18,4 +18,8 @@ Welcome to Node.js v16.15.1. | ||
| > await python.init() | ||
| > python.exec('2+3') | ||
| > python.exec('a = 2 + 3; a') | ||
| 5 | ||
| > python.repr('a') | ||
| 5 | ||
| > python.exec('import sys; sys.platform') | ||
| 'wasi' | ||
| ``` | ||
@@ -22,0 +26,0 @@ |
+1
-1
@@ -5,5 +5,5 @@ { | ||
| "rootDir": "src", | ||
| "outDir": "dist" | ||
| "outDir": "dist", | ||
| }, | ||
| "exclude": ["node_modules", "build", "dist"] | ||
| } |
29
16%2482
-15.92%17
-54.05%Updated