New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

python-wasm

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-wasm - npm Package Compare versions

Comparing version
0.0.1
to
0.2.0
dist/.built

Sorry, the diff of this file is not supported yet

+2
-1

@@ -1,1 +0,2 @@

export { python } from "@wapython/core";
import * as python from "@wapython/core";
export default python;
"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 });
exports.python = void 0;
var core_1 = require("@wapython/core");
Object.defineProperty(exports, "python", { enumerable: true, get: function () { return core_1.python; } });
var python = __importStar(require("@wapython/core"));
exports.default = python;
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAwC;AAA/B,8FAAA,MAAM,OAAA"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAyC;AACzC,kBAAe,MAAM,CAAC"}
{
"name": "python-wasm",
"version": "0.0.1",
"version": "0.2.0",
"description": "WebAssembly Python",

@@ -10,5 +10,3 @@ "main": "dist/index.js",

"build": "npx tsc",
"tsc": "npx tsc -w",
"test": "jest ./dist",
"test-watch": "jest --watch ./dist"
"tsc": "npx tsc -w"
},

@@ -19,3 +17,3 @@ "repository": {

},
"keywords": ["number", "theory"],
"keywords": ["python", "webassembly"],
"author": "William Stein",

@@ -27,6 +25,5 @@ "license": "BSD-3-Clause",

"homepage": "https://github.com/sagemathinc/wapython/tree/main/packages/python-wasm",
"workspaces": ["../wasi", "../core"],
"workspaces": ["../core"],
"dependencies": {
"@wapython/wasi": "^0.15.0",
"@wapython/core": "^0.2.3"
"@wapython/core": "^0.3.0"
},

@@ -33,0 +30,0 @@ "devDependencies": {

# python-wasm
## Quickstart
## Quickstart in Node.js

@@ -15,5 +15,11 @@ ```

Type ".help" for more information.
> const {python} = require('python-wasm')
> const python = require('python-wasm')
> await python.init()
> python.exec('2+3')
5
5
```
## Webpack
See https://github.com/sagemathinc/wapython/tree/main/packages/webpack