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

@concordium/node-sdk

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@concordium/node-sdk - npm Package Compare versions

Comparing version

to
2.0.2

grpc/concordium_p2p_rpc_grpc_pb.d.ts

1

lib/index.d.ts

@@ -6,1 +6,2 @@ import ConcordiumNodeClient from './client';

export * from '@concordium/common-sdk';
export { getModuleBuffer } from './util';

4

lib/index.js

@@ -20,3 +20,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.decryptMobileWalletExport = exports.ConcordiumNodeClient = void 0;
exports.getModuleBuffer = exports.decryptMobileWalletExport = exports.ConcordiumNodeClient = void 0;
const client_1 = __importDefault(require("./client"));

@@ -27,1 +27,3 @@ exports.ConcordiumNodeClient = client_1.default;

__exportStar(require("@concordium/common-sdk"), exports);
var util_1 = require("./util");
Object.defineProperty(exports, "getModuleBuffer", { enumerable: true, get: function () { return util_1.getModuleBuffer; } });

@@ -0,1 +1,2 @@

import { Buffer } from 'buffer/';
export declare function intListToStringList(jsonStruct: string): string;

@@ -14,1 +15,7 @@ /**

export declare function unwrapJsonResponse<T>(serializedResponse: Uint8Array, reviver?: (this: unknown, key: string, value: unknown) => unknown, transformer?: (json: string) => string): T | undefined;
/**
* Loads the module as a buffer, given the given filePath.
* @param filepath the location of the module
* @returns the module as a buffer
*/
export declare function getModuleBuffer(filePath: string): Buffer;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.unwrapJsonResponse = exports.unwrapBoolResponse = exports.intListToStringList = void 0;
exports.getModuleBuffer = exports.unwrapJsonResponse = exports.unwrapBoolResponse = exports.intListToStringList = void 0;
const fs = __importStar(require("fs"));
const buffer_1 = require("buffer/");
const concordium_p2p_rpc_pb_1 = require("../grpc/concordium_p2p_rpc_pb");

@@ -35,1 +60,10 @@ function intListToStringList(jsonStruct) {

exports.unwrapJsonResponse = unwrapJsonResponse;
/**
* Loads the module as a buffer, given the given filePath.
* @param filepath the location of the module
* @returns the module as a buffer
*/
function getModuleBuffer(filePath) {
return buffer_1.Buffer.from(fs.readFileSync(filePath));
}
exports.getModuleBuffer = getModuleBuffer;
{
"name": "@concordium/node-sdk",
"version": "2.0.0",
"version": "2.0.2",
"description": "Helpers for interacting with the Concordium node",

@@ -21,2 +21,3 @@ "repository": {

"files": [
"/grpc/*",
"/lib/**/*"

@@ -55,9 +56,10 @@ ],

"test": "jest",
"build": "([ ! -e \"grpc\" ] && yarn generate) || true && tsc && cp -r ./grpc/ ./lib/ "
"build": "([ ! -e \"grpc\" ] && yarn generate) || true && tsc"
},
"dependencies": {
"@concordium/common-sdk": "2.0.0",
"@concordium/common-sdk": "2.0.1",
"@grpc/grpc-js": "^1.3.4",
"buffer": "^6.0.3"
"buffer": "^6.0.3",
"google-protobuf": "^3.20.1"
}
}