pythonlib 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -459,6 +459,9 @@ function ascii(x) {
|
|
|
459
459
|
return result;
|
|
460
460
|
}
|
|
461
461
|
function isinstance(obj, classInfo) {
|
|
462
|
+
if (Array.isArray(classInfo)) {
|
|
463
|
+
return classInfo.some((cls) => isinstance(obj, cls));
|
|
464
|
+
}
|
|
462
465
|
if (classInfo === Number || classInfo === "int" || classInfo === "float") {
|
|
463
466
|
return typeof obj === "number";
|
|
464
467
|
}
|
package/dist/index.browser.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pythonlib",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Python standard library for TypeScript - itertools, functools, collections, datetime, re, and more. Zero dependencies. Full TypeScript support.",
|
|
5
5
|
"homepage": "https://sebastian-software.github.io/python2ts/",
|
|
6
6
|
"repository": {
|