@concordium/node-sdk
Advanced tools
Comparing version
@@ -6,1 +6,2 @@ import ConcordiumNodeClient from './client'; | ||
export * from '@concordium/common-sdk'; | ||
export { getModuleBuffer } from './util'; |
@@ -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" | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
380751
0.51%7482
0.59%0
-100%4
33.33%1
Infinity%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated