namirasoft-core
Advanced tools
Comparing version 1.4.0 to 1.4.1
import { ConvertService } from "./ConvertService"; | ||
import { ParsedNameValue } from "./ParsedNameValue"; | ||
export declare class ObjectService extends ConvertService { | ||
static isClass(obj: any): boolean; | ||
private object; | ||
@@ -5,0 +6,0 @@ constructor(object: ParsedNameValue, mandatory?: boolean); |
@@ -6,2 +6,5 @@ "use strict"; | ||
class ObjectService extends ConvertService_1.ConvertService { | ||
static isClass(obj) { | ||
return typeof obj === 'function' && /^\s*class\s+/.test(obj.toString()); | ||
} | ||
constructor(object, mandatory = false) { | ||
@@ -8,0 +11,0 @@ super(mandatory); |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "Amir Abolhasani", | ||
@@ -21,4 +21,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/node": "^22.0.0", | ||
"axios": "^1.7.2", | ||
"@types/node": "^22.0.2", | ||
"axios": "^1.7.3", | ||
"buffer": "^6.0.3", | ||
@@ -25,0 +25,0 @@ "moment": "^2.30.1", |
@@ -6,2 +6,6 @@ import { ConvertService } from "./ConvertService"; | ||
{ | ||
static isClass(obj: any) | ||
{ | ||
return typeof obj === 'function' && /^\s*class\s+/.test(obj.toString()); | ||
} | ||
private object: ParsedNameValue; | ||
@@ -8,0 +12,0 @@ constructor(object: ParsedNameValue, mandatory: boolean = false) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
386260
4901
0
148
12
12
116
Updated@types/node@^22.0.2
Updatedaxios@^1.7.3