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

indy-request

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indy-request - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

36

index.js

@@ -7,18 +7,25 @@ let bs58 = require('bs58')

let type = {
NODE: 0,
NYM: 1,
ATTRIB: 100,
SCHEMA: 101,
CLAIM_DEF: 102,
POOL_UPGRADE: 109,
NODE_UPGRADE: 110,
POOL_CONFIG: 111,
GET_TXN: 3,
GET_ATTR: 104,
GET_NYM: 105,
GET_SCHEMA: 107,
GET_CLAIM_DEF: 108
const type = {
NODE: '0',
NYM: '1',
ATTRIB: '100',
SCHEMA: '101',
CRED_DEF: '102',
POOL_UPGRADE: '109',
NODE_UPGRADE: '110',
POOL_CONFIG: '111',
GET_TXN: '3',
GET_ATTR: '104',
GET_NYM: '105',
GET_SCHEMA: '107',
GET_CLAIM_DEF: '108'
}
const role = {
TRUSTEE: '0',
STEWARD: '2',
TRUST_ANCHOR: '101',
ROLE_REMOVE: ''
}
function IndyReq (conf) {

@@ -144,1 +151,2 @@ if (typeof conf.timeout !== 'number') {

module.exports.type = type
module.exports.role = role
{
"name": "indy-request",
"version": "0.0.1",
"version": "0.0.2",
"description": "Make requests to Indy (i.e. Sovrin) nodes",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -61,3 +61,3 @@ let test = require('ava')

operation: {
type: IndyReq.type.GET_TXN + '',
type: IndyReq.type.GET_TXN,
ledgerId: 1,

@@ -148,3 +148,3 @@ data: 9

operation: {
type: IndyReq.type.NYM + '',
type: IndyReq.type.NYM,
dest: my1DID,

@@ -162,3 +162,3 @@ verkey: my1Verkey

operation: {
type: IndyReq.type.GET_NYM + '',
type: IndyReq.type.GET_NYM,
dest: my1DID

@@ -176,3 +176,3 @@ },

operation: {
type: IndyReq.type.ATTRIB + '',
type: IndyReq.type.ATTRIB,
dest: my1DID,

@@ -189,3 +189,3 @@ raw: '{"some":"one"}'

operation: {
type: IndyReq.type.ATTRIB + '',
type: IndyReq.type.ATTRIB,
dest: my1DID,

@@ -202,3 +202,3 @@ raw: '{"another":"thing"}'

operation: {
type: IndyReq.type.GET_ATTR + '',
type: IndyReq.type.GET_ATTR,
dest: my1DID,

@@ -215,3 +215,3 @@ raw: 'some'

operation: {
type: IndyReq.type.GET_ATTR + '',
type: IndyReq.type.GET_ATTR,
dest: my1DID,

@@ -228,3 +228,3 @@ raw: 'another'

operation: {
type: IndyReq.type.NYM + '',
type: IndyReq.type.NYM,
dest: my1DID,

@@ -239,3 +239,3 @@ verkey: my1Verkey

operation: {
type: IndyReq.type.ATTRIB + '',
type: IndyReq.type.ATTRIB,
dest: my1DID,

@@ -252,3 +252,3 @@ raw: '{"some":"one"}'

operation: {
type: IndyReq.type.ATTRIB + '',
type: IndyReq.type.ATTRIB,
dest: my1DID,

@@ -265,3 +265,3 @@ raw: '{"another":"thing"}'

operation: {
type: IndyReq.type.GET_ATTR + '',
type: IndyReq.type.GET_ATTR,
dest: my1DID,

@@ -278,3 +278,3 @@ raw: 'some'

operation: {
type: IndyReq.type.GET_ATTR + '',
type: IndyReq.type.GET_ATTR,
dest: my1DID,

@@ -281,0 +281,0 @@ raw: 'another'

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