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

ipfs-grpc-protocol

Package Overview
Dependencies
Maintainers
3
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-grpc-protocol - npm Package Compare versions

Comparing version 0.6.1-ddfb899f.0 to 0.7.0

LICENSE

4

dist/index.min.js

@@ -1,3 +0,3 @@

(function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.IpfsGrpcProtocol = factory()}(typeof self !== 'undefined' ? self : this, function () {
var IpfsGrpcProtocol=(()=>{var p=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var i in e)p(t,i,{get:e[i],enumerable:!0})},o=(t,e,i,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of n(e))!y.call(t,s)&&s!==i&&p(t,s,{get:()=>e[s],enumerable:!(d=r(e,s))||d.enumerable});return t};var R=t=>o(p({},"__esModule",{value:!0}),t);var l={};u(l,{default:()=>b});var b={nested:{ipfs:{nested:{FileType:{values:{DIRECTORY:0,FILE:1}},MFS:{methods:{ls:{requestType:"LsRequest",responseType:"LsResponse",responseStream:!0},write:{requestType:"WriteRequest",requestStream:!0,responseType:"WriteResponse"}}},LsRequest:{fields:{path:{type:"string",id:1}}},LsResponse:{fields:{name:{type:"string",id:1},type:{type:"FileType",id:2},size:{type:"uint32",id:3},cid:{type:"string",id:4},mode:{type:"uint32",id:5},mtime:{type:"int32",id:6},mtimeNsecs:{type:"uint32",id:7}}},WriteRequest:{fields:{path:{type:"string",id:1},content:{type:"bytes",id:2}}},WriteResponse:{fields:{}},PubSub:{methods:{subscribe:{requestType:"SubscribeRequest",responseType:"SubscribeResponse",responseStream:!0},unsubscribe:{requestType:"UnSubscribeRequest",responseType:"UnSubscribeResponse"}}},SubscribeRequest:{fields:{topic:{type:"string",id:1}}},SubscribeResponse:{fields:{handler:{type:"string",id:1},from:{type:"string",id:2},sequenceNumber:{type:"bytes",id:3},data:{type:"bytes",id:4},topic:{type:"string",id:5}}},UnSubscribeRequest:{fields:{topic:{type:"string",id:1},handlers:{rule:"repeated",type:"string",id:2}}},UnSubscribeResponse:{fields:{}},Root:{methods:{id:{requestType:"IdRequest",responseType:"IdResponse"},add:{requestType:"AddRequest",requestStream:!0,responseType:"AddResponse",responseStream:!0}}},AddResponseType:{values:{PROGRESS:0,RESULT:1}},IdRequest:{fields:{peerId:{type:"string",id:1}}},IdResponse:{fields:{id:{type:"string",id:1},publicKey:{type:"string",id:2},addresses:{rule:"repeated",type:"string",id:3},agentVersion:{type:"string",id:4},protocolVersion:{type:"string",id:5},protocols:{rule:"repeated",type:"string",id:6}}},AddRequest:{fields:{index:{type:"int32",id:1},type:{type:"FileType",id:2},path:{type:"string",id:3},mode:{type:"uint32",id:4},mtime:{type:"int32",id:5},mtimeNsecs:{type:"uint32",id:6},content:{type:"bytes",id:7}}},AddResponse:{fields:{type:{type:"AddResponseType",id:1},path:{type:"string",id:2},bytes:{type:"int32",id:3},cid:{type:"string",id:4},mode:{type:"uint32",id:5},mtime:{type:"int32",id:6},mtimeNsecs:{type:"uint32",id:7},size:{type:"uint32",id:8}}}}}}};return R(l);})();
"use strict";(function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.IpfsGrpcProtocol = factory()}(typeof self !== 'undefined' ? self : this, function () {
var IpfsGrpcProtocol=(()=>{var p=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var i in e)p(t,i,{get:e[i],enumerable:!0})},o=(t,e,i,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of n(e))!y.call(t,s)&&s!==i&&p(t,s,{get:()=>e[s],enumerable:!(d=r(e,s))||d.enumerable});return t};var R=t=>o(p({},"__esModule",{value:!0}),t);var l={};u(l,{default:()=>b});var b={nested:{ipfs:{nested:{FileType:{values:{DIRECTORY:0,FILE:1}},MFS:{methods:{ls:{requestType:"LsRequest",responseType:"LsResponse",responseStream:!0},write:{requestType:"WriteRequest",requestStream:!0,responseType:"WriteResponse"}}},LsRequest:{fields:{path:{type:"string",id:1}}},LsResponse:{fields:{name:{type:"string",id:1},type:{type:"FileType",id:2},size:{type:"uint32",id:3},cid:{type:"string",id:4},mode:{type:"uint32",id:5},mtime:{type:"int32",id:6},mtimeNsecs:{type:"uint32",id:7}}},WriteRequest:{fields:{path:{type:"string",id:1},content:{type:"bytes",id:2}}},WriteResponse:{fields:{}},PubSub:{methods:{subscribe:{requestType:"SubscribeRequest",responseType:"SubscribeResponse",responseStream:!0},unsubscribe:{requestType:"UnSubscribeRequest",responseType:"UnSubscribeResponse"}}},SubscribeRequest:{fields:{topic:{type:"string",id:1}}},SubscribeResponse:{fields:{handler:{type:"string",id:1},from:{type:"string",id:2},sequenceNumber:{type:"bytes",id:3},data:{type:"bytes",id:4},topic:{type:"string",id:5},key:{type:"bytes",id:6},signature:{type:"bytes",id:7},type:{type:"string",id:8}}},UnSubscribeRequest:{fields:{topic:{type:"string",id:1},handlers:{rule:"repeated",type:"string",id:2}}},UnSubscribeResponse:{fields:{}},Root:{methods:{id:{requestType:"IdRequest",responseType:"IdResponse"},add:{requestType:"AddRequest",requestStream:!0,responseType:"AddResponse",responseStream:!0}}},AddResponseType:{values:{PROGRESS:0,RESULT:1}},IdRequest:{fields:{peerId:{type:"string",id:1}}},IdResponse:{fields:{id:{type:"string",id:1},publicKey:{type:"string",id:2},addresses:{rule:"repeated",type:"string",id:3},agentVersion:{type:"string",id:4},protocolVersion:{type:"string",id:5},protocols:{rule:"repeated",type:"string",id:6}}},AddRequest:{fields:{index:{type:"int32",id:1},type:{type:"FileType",id:2},path:{type:"string",id:3},mode:{type:"uint32",id:4},mtime:{type:"int32",id:5},mtimeNsecs:{type:"uint32",id:6},content:{type:"bytes",id:7}}},AddResponse:{fields:{type:{type:"AddResponseType",id:1},path:{type:"string",id:2},bytes:{type:"int32",id:3},cid:{type:"string",id:4},mode:{type:"uint32",id:5},mtime:{type:"int32",id:6},mtimeNsecs:{type:"uint32",id:7},size:{type:"uint32",id:8}}}}}}};return R(l);})();
return IpfsGrpcProtocol}));

@@ -122,2 +122,14 @@ {

"id": 5
},
"key": {
"type": "bytes",
"id": 6
},
"signature": {
"type": "bytes",
"id": 7
},
"type": {
"type": "string",
"id": 8
}

@@ -124,0 +136,0 @@ }

@@ -168,2 +168,21 @@ declare namespace _default {

export { topic_1 as topic };
export namespace key {
const type_17: string;
export { type_17 as type };
const id_16: number;
export { id_16 as id };
}
export namespace signature {
const type_18: string;
export { type_18 as type };
const id_17: number;
export { id_17 as id };
}
export namespace type_19 {
const type_20: string;
export { type_20 as type };
const id_18: number;
export { id_18 as id };
}
export { type_19 as type };
}

@@ -175,6 +194,6 @@ export { fields_5 as fields };

export namespace topic_2 {
const type_17: string;
export { type_17 as type };
const id_16: number;
export { id_16 as id };
const type_21: string;
export { type_21 as type };
const id_19: number;
export { id_19 as id };
}

@@ -184,6 +203,6 @@ export { topic_2 as topic };

export const rule: string;
const type_18: string;
export { type_18 as type };
const id_17: number;
export { id_17 as id };
const type_22: string;
export { type_22 as type };
const id_20: number;
export { id_20 as id };
}

@@ -199,3 +218,3 @@ }

export namespace methods_2 {
export namespace id_18 {
export namespace id_21 {
const requestType_4: string;

@@ -206,3 +225,3 @@ export { requestType_4 as requestType };

}
export { id_18 as id };
export { id_21 as id };
export namespace add {

@@ -231,6 +250,6 @@ const requestType_5: string;

namespace peerId {
const type_19: string;
export { type_19 as type };
const id_19: number;
export { id_19 as id };
const type_23: string;
export { type_23 as type };
const id_22: number;
export { id_22 as id };
}

@@ -242,14 +261,14 @@ }

export namespace fields_9 {
export namespace id_20 {
const type_20: string;
export { type_20 as type };
const id_21: number;
export { id_21 as id };
export namespace id_23 {
const type_24: string;
export { type_24 as type };
const id_24: number;
export { id_24 as id };
}
export { id_20 as id };
export { id_23 as id };
export namespace publicKey {
const type_21: string;
export { type_21 as type };
const id_22: number;
export { id_22 as id };
const type_25: string;
export { type_25 as type };
const id_25: number;
export { id_25 as id };
}

@@ -259,39 +278,14 @@ export namespace addresses {

export { rule_1 as rule };
const type_22: string;
export { type_22 as type };
const id_23: number;
export { id_23 as id };
}
export namespace agentVersion {
const type_23: string;
export { type_23 as type };
const id_24: number;
export { id_24 as id };
}
export namespace protocolVersion {
const type_24: string;
export { type_24 as type };
const id_25: number;
export { id_25 as id };
}
export namespace protocols {
const rule_2: string;
export { rule_2 as rule };
const type_25: string;
export { type_25 as type };
const type_26: string;
export { type_26 as type };
const id_26: number;
export { id_26 as id };
}
}
export { fields_9 as fields };
}
namespace AddRequest {
export namespace fields_10 {
export namespace index {
const type_26: string;
export { type_26 as type };
export namespace agentVersion {
const type_27: string;
export { type_27 as type };
const id_27: number;
export { id_27 as id };
}
export namespace type_27 {
export namespace protocolVersion {
const type_28: string;

@@ -302,4 +296,5 @@ export { type_28 as type };

}
export { type_27 as type };
export namespace path_2 {
export namespace protocols {
const rule_2: string;
export { rule_2 as rule };
const type_29: string;

@@ -310,4 +305,8 @@ export { type_29 as type };

}
export { path_2 as path };
export namespace mode_1 {
}
export { fields_9 as fields };
}
namespace AddRequest {
export namespace fields_10 {
export namespace index {
const type_30: string;

@@ -318,30 +317,24 @@ export { type_30 as type };

}
export { mode_1 as mode };
export namespace mtime_1 {
const type_31: string;
export { type_31 as type };
export namespace type_31 {
const type_32: string;
export { type_32 as type };
const id_31: number;
export { id_31 as id };
}
export { mtime_1 as mtime };
export namespace mtimeNsecs_1 {
const type_32: string;
export { type_32 as type };
export { type_31 as type };
export namespace path_2 {
const type_33: string;
export { type_33 as type };
const id_32: number;
export { id_32 as id };
}
export { mtimeNsecs_1 as mtimeNsecs };
export namespace content_1 {
const type_33: string;
export { type_33 as type };
export { path_2 as path };
export namespace mode_1 {
const type_34: string;
export { type_34 as type };
const id_33: number;
export { id_33 as id };
}
export { content_1 as content };
}
export { fields_10 as fields };
}
namespace AddResponse {
export namespace fields_11 {
export namespace type_34 {
export { mode_1 as mode };
export namespace mtime_1 {
const type_35: string;

@@ -352,4 +345,4 @@ export { type_35 as type };

}
export { type_34 as type };
export namespace path_3 {
export { mtime_1 as mtime };
export namespace mtimeNsecs_1 {
const type_36: string;

@@ -360,4 +353,4 @@ export { type_36 as type };

}
export { path_3 as path };
export namespace bytes {
export { mtimeNsecs_1 as mtimeNsecs };
export namespace content_1 {
const type_37: string;

@@ -368,36 +361,62 @@ export { type_37 as type };

}
export namespace cid_1 {
const type_38: string;
export { type_38 as type };
export { content_1 as content };
}
export { fields_10 as fields };
}
namespace AddResponse {
export namespace fields_11 {
export namespace type_38 {
const type_39: string;
export { type_39 as type };
const id_37: number;
export { id_37 as id };
}
export { cid_1 as cid };
export namespace mode_2 {
const type_39: string;
export { type_39 as type };
export { type_38 as type };
export namespace path_3 {
const type_40: string;
export { type_40 as type };
const id_38: number;
export { id_38 as id };
}
export { mode_2 as mode };
export namespace mtime_2 {
const type_40: string;
export { type_40 as type };
export { path_3 as path };
export namespace bytes {
const type_41: string;
export { type_41 as type };
const id_39: number;
export { id_39 as id };
}
export { mtime_2 as mtime };
export namespace mtimeNsecs_2 {
const type_41: string;
export { type_41 as type };
export namespace cid_1 {
const type_42: string;
export { type_42 as type };
const id_40: number;
export { id_40 as id };
}
export { mtimeNsecs_2 as mtimeNsecs };
export namespace size_1 {
const type_42: string;
export { type_42 as type };
export { cid_1 as cid };
export namespace mode_2 {
const type_43: string;
export { type_43 as type };
const id_41: number;
export { id_41 as id };
}
export { mode_2 as mode };
export namespace mtime_2 {
const type_44: string;
export { type_44 as type };
const id_42: number;
export { id_42 as id };
}
export { mtime_2 as mtime };
export namespace mtimeNsecs_2 {
const type_45: string;
export { type_45 as type };
const id_43: number;
export { id_43 as id };
}
export { mtimeNsecs_2 as mtimeNsecs };
export namespace size_1 {
const type_46: string;
export { type_46 as type };
const id_44: number;
export { id_44 as id };
}
export { size_1 as size };

@@ -404,0 +423,0 @@ }

{
"name": "ipfs-grpc-protocol",
"version": "0.6.1-ddfb899f.0",
"version": "0.7.0",
"description": "Protobuf definitions for the IPFS gRPC API",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-grpc-protocol#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/ipfs/js-ipfs.git"
},
"bugs": {
"url": "https://github.com/ipfs/js-ipfs/issues"
},
"keywords": [
"ipfs"
],
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"type": "module",
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"src",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./src/index.js"
}
},
"eslintConfig": {

@@ -22,14 +57,2 @@ "extends": "ipfs",

},
"exports": {
".": {
"import": "./src/index.js"
}
},
"homepage": "https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-grpc-protocol#readme",
"bugs": "https://github.com/ipfs/js-ipfs/issues",
"license": "(Apache-2.0 OR MIT)",
"repository": {
"type": "git",
"url": "git+https://github.com/ipfs/js-ipfs.git"
},
"scripts": {

@@ -43,5 +66,6 @@ "clean": "aegir clean",

"mkdirp": "^1.0.4",
"protobufjs": "^6.10.2"
"protobufjs": "^7.0.0",
"protobufjs-cli": "^1.0.0"
},
"gitHead": "87fbbf38470547cf82ced4c9fd2679df026170bd"
"gitHead": "89aeaf8e25320276391653104981e37a73f29de9"
}

@@ -1,3 +0,40 @@

# ipfs-grpc-protocol
# ipfs-grpc-protocol <!-- omit in toc -->
Contains `.proto` files that define the IPFS gRPC interface.
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)
[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)
[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)
> Protobuf definitions for the IPFS gRPC API
## Table of contents <!-- omit in toc -->
- [Install](#install)
- [License](#license)
- [Contribute](#contribute)
## Install
```console
$ npm i ipfs-grpc-protocol
```
## License
Licensed under either of
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
## Contribute
Contributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).
Also see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.
Please be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

@@ -123,2 +123,14 @@

id: 5
},
key: {
type: 'bytes',
id: 6
},
signature: {
type: 'bytes',
id: 7
},
type: {
type: 'string',
id: 8
}

@@ -125,0 +137,0 @@ }

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