cyfs-service-helper
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -9,3 +9,3 @@ import * as cyfs from "cyfs-sdk"; | ||
export declare function loadDependsWithLockPaths(stack: cyfs.SharedCyfsStack, env: cyfs.PathOpEnvStub, lockPathSet: Set<string>): Promise<LoadMap>; | ||
export declare function defaultTextOk(msg?: string): cyfs.TextObject; | ||
export declare function defaultTextOk(msg?: string | Object): cyfs.TextObject; | ||
export declare function defaultTextErr(err: cyfs.BuckyError): cyfs.TextObject; | ||
@@ -12,0 +12,0 @@ export declare function makeResponce(resp: AsObject): cyfs.BuckyResult<cyfs.RouterHandlerPostObjectResult>; |
@@ -70,3 +70,5 @@ "use strict"; | ||
exports.loadDependsWithLockPaths = loadDependsWithLockPaths; | ||
function defaultTextOk(msg = "ok") { | ||
function defaultTextOk(msg) { | ||
if (!msg) | ||
msg = "ok"; | ||
return cyfs.TextObject.create(cyfs.None, "qa-default-ok", "qa-default-ok", JSON.stringify({ err: 0, msg })); | ||
@@ -73,0 +75,0 @@ } |
{ | ||
"name": "cyfs-service-helper", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "help people build dec service quickly in CYFS.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
36897
899