eosjs-json
Advanced tools
Comparing version 1.0.3 to 1.0.4
/* eslint-env mocha */ | ||
describe('syntax', function () { | ||
const assert = require('assert') | ||
const Fcbuffer = require('fcbuffer') | ||
const schema = require('./schema') | ||
describe('syntax', () => { | ||
for (const fn of [ | ||
'./api/v1', | ||
'./api', | ||
'./schema' | ||
@@ -13,1 +17,11 @@ ]) { | ||
}) | ||
describe('fcbuffer', () => { | ||
it('parses', () => { | ||
const fcbuffer = Fcbuffer(schema) | ||
const errors = JSON.stringify(fcbuffer.errors, null, 4) | ||
assert.equal(errors, '[]') | ||
}) | ||
}) |
{ | ||
"name": "eosjs-json", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Information about the EOS blockchain in the JSON file format.", | ||
@@ -8,2 +8,3 @@ "dependencies": {}, | ||
"camel-case": "^3.0.0", | ||
"fcbuffer": "^1.0.1", | ||
"mocha": "^3.4.2" | ||
@@ -10,0 +11,0 @@ }, |
@@ -22,3 +22,3 @@ [](https://travis-ci.org/eosjs/json) | ||
[./schema/operations.json](./schema/operations.json) | ||
[./schema/generated.json](./schema/generated.json) | ||
@@ -29,4 +29,12 @@ These operations make up the blockchain. Because these are signed and stored in binary format a serialization and deserialization library is needed. | ||
## Environment | ||
# Updating Generated Types | ||
```bash | ||
curl https://raw.githubusercontent.com/EOSIO/eos/master/libraries/types/types.eos > types.eos | ||
./type_parser.js types.eos > schema/generated.json | ||
yarn test | ||
``` | ||
# Environment | ||
JSON |
@@ -17,5 +17,5 @@ { | ||
"code": "AccountName", | ||
"type": "FuncName", | ||
"recipients": "AccountName[]", | ||
"authorization": "AccountPermission[]", | ||
"type": "FuncName", | ||
"data": "Bytes" | ||
@@ -25,5 +25,5 @@ }, | ||
"code": "the contract defining the primary code to execute for code/type", | ||
"type": "the action to be taken", | ||
"recipients": "the other contracts whose code will run handlers for primary/type", | ||
"authorization": "the accounts and permission levels provided", | ||
"type": "the action to be taken", | ||
"data": "opaque data processed by code" | ||
@@ -30,0 +30,0 @@ } |
@@ -11,6 +11,6 @@ #!/usr/bin/env node | ||
console.error(); | ||
console.error('wget https://raw.githubusercontent.com/EOSIO/eos/master/libraries/types/types.eos'); | ||
console.error('curl https://raw.githubusercontent.com/EOSIO/eos/master/libraries/types/types.eos > types.eos'); | ||
console.error('./type_parser.js types.eos > schema/generated.json') | ||
console.error(); | ||
console.error('Link and unit test this new release from fcbuffer'); | ||
console.error('Run unit tests'); | ||
console.error(); | ||
@@ -17,0 +17,0 @@ process.exit(1) |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19219
365
39
0
3