New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eosjs-json

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eosjs-json - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

18

index.test.js
/* 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, '[]')
})
})

3

package.json
{
"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 @@ [![Build Status](https://travis-ci.org/eosjs/json.svg?branch=master)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc