primea-objects
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -87,2 +87,11 @@ const cbor = require('borc') | ||
} | ||
copy () { | ||
return new FunctionRef({ | ||
identifier: this.identifier, | ||
actorID: this.actorID, | ||
params: this.params, | ||
gas: this.gas | ||
}) | ||
} | ||
} | ||
@@ -89,0 +98,0 @@ |
{ | ||
"name": "primea-objects", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Object helper classes for Primea's system Objects", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"borc": "git+https://github.com:dignifiedquire/borc.git#fix/nested-array", | ||
"borc": "git+https://github.com/dignifiedquire/borc.git#fix/nested-array", | ||
"events": "^2.0.0", | ||
@@ -22,0 +22,0 @@ "safe-buffer": "^5.1.1" |
@@ -25,2 +25,6 @@ const tape = require('tape') | ||
const funcRef = rmodRef.getFuncRef('name') | ||
funcRef.gas = 1000 | ||
const funcRef2 = funcRef.copy() | ||
funcRef2.gas = 500 | ||
t.equals(funcRef.gas, 1000, 'should have correct gas amount') | ||
const enFuncRef = cbor.encode(funcRef) | ||
@@ -27,0 +31,0 @@ const rFuncRef = objects.decoder.decodeFirst(enFuncRef) |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
102681
606
0