cyfs-service-helper
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -21,1 +21,7 @@ import * as cyfs from "cyfs-sdk"; | ||
} | null; | ||
/** | ||
* 应对as_slice问题封装的Uint8Array工具函数 | ||
* @param obj | ||
* @returns | ||
*/ | ||
export declare function toUint8Array(obj: cyfs.ObjectId | cyfs.UniqueId): Uint8Array; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodePutReqTextObj = exports.decodeReqTextObj = exports.decodePutReqObj = exports.decodeReqObj = exports.makePutResponce = exports.makeResponce = exports.defaultTextErr = exports.defaultTextOk = exports.loadDependsWithLockPaths = exports.loadByPath = void 0; | ||
exports.toUint8Array = exports.decodePutReqTextObj = exports.decodeReqTextObj = exports.decodePutReqObj = exports.decodeReqObj = exports.makePutResponce = exports.makeResponce = exports.defaultTextErr = exports.defaultTextOk = exports.loadDependsWithLockPaths = exports.loadByPath = void 0; | ||
const cyfs = __importStar(require("cyfs-sdk")); | ||
@@ -174,1 +174,10 @@ const kits_1 = require("./kits"); | ||
exports.decodePutReqTextObj = decodePutReqTextObj; | ||
/** | ||
* 应对as_slice问题封装的Uint8Array工具函数 | ||
* @param obj | ||
* @returns | ||
*/ | ||
function toUint8Array(obj) { | ||
return cyfs.ProtobufCodecHelper.encode_buf(obj).unwrap(); | ||
} | ||
exports.toUint8Array = toUint8Array; |
{ | ||
"name": "cyfs-service-helper", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "help people build dec service quickly in CYFS.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
36814
897