Skip to content

Commit f15cd91

Browse files
committed
version correction
1 parent 363fb97 commit f15cd91

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ <h4>JSPython development console</h4>
110110
Math,
111111
dateTime: () => new Date(),
112112
sqrPromise: (fn) => new Promise((s, f) => setTimeout(() => s(fn * fn), 5)),
113-
print: (p1, p2) => {
114-
console.log(p1);
115-
return p1;
116-
},
113+
print: (...args) => { console.log(...args); return args.length > 0 ? args[0] : null; },
117114
x: 10,
118115
o: {
119116
f1: (x, y) => { return { x, y }; },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspython-interpreter",
3-
"version": "2.0.8",
3+
"version": "2.0.9",
44
"description": "JSPython is a javascript implementation of Python language that runs within web browser or NodeJS environment",
55
"keywords": [
66
"python",

src/initialScope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { parseDatetimeOrNull } from "./common/utils";
22

33
export const INITIAL_SCOPE = {
44
jsPython(): string {
5-
return [`JSPython v2.0.7`, "(c) FalconSoft Ltd"].join('\n')
5+
return [`JSPython v2.0.9`, "(c) 2020 FalconSoft Ltd. All rights reserved."].join('\n')
66
},
77
dateTime: (str: number | string | any = null) => (str && str.length)
88
? parseDatetimeOrNull(str) || new Date() : new Date(),

0 commit comments

Comments
 (0)