primea-objects
Advanced tools
Comparing version 0.0.6 to 0.0.7
16
index.js
@@ -99,3 +99,3 @@ const crypto = require('crypto') | ||
const json = { | ||
type: getType(this), | ||
type: 'func', | ||
actorID: this.actorID.toJSON(), | ||
@@ -165,3 +165,3 @@ private: this.identifier[0], | ||
return { | ||
type: getType(this), | ||
type: 'actor', | ||
id: this.id.toJSON(), | ||
@@ -202,3 +202,3 @@ mod: this.modRef.toJSON(includeExports) | ||
const json = { | ||
type: getType(this), | ||
type: 'mod', | ||
id: this.id.toJSON(), | ||
@@ -274,11 +274,11 @@ modType: this.type, | ||
return 'link' | ||
} else if (obj.constructor === Message) { | ||
} else if (obj.constructor.name === 'Message') { | ||
return 'message' | ||
} else if (obj.constructor === ID) { | ||
} else if (obj.constructor.name === 'ID') { | ||
return 'id' | ||
} else if (obj.constructor === FunctionRef) { | ||
} else if (obj.constructor.name === 'FunctionRef') { | ||
return 'func' | ||
} else if (obj.constructor === ModuleRef) { | ||
} else if (obj.constructor.name === 'ModuleRef') { | ||
return 'mod' | ||
} else if (obj.constructor === ActorRef) { | ||
} else if (obj.constructor.name === 'ActorRef') { | ||
return 'actor' | ||
@@ -285,0 +285,0 @@ } |
{ | ||
"name": "primea-objects", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Object helper classes for Primea's system Objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
173557
23
860
0