@contential/prompt
Advanced tools
Comparing version 0.0.0-test to 0.0.1-test
@@ -1,3 +0,13 @@ | ||
declare const prompt: () => void; | ||
type PromptClientOptions = { | ||
secretKey?: string; | ||
}; | ||
type PromptConfig = { | ||
secretKey: string; | ||
}; | ||
export { prompt as default, prompt }; | ||
declare const prompt: (config: PromptConfig) => void; | ||
declare const getClient: (options?: PromptClientOptions) => { | ||
prompt: () => void; | ||
}; | ||
export { prompt as default, getClient }; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -23,12 +24,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
default: () => src_default, | ||
prompt: () => prompt | ||
getClient: () => getClient | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
var prompt = () => { | ||
console.log("@contential/prompt"); | ||
// ../config/dist/index.mjs | ||
var config = { | ||
name: "theconfig 5" | ||
}; | ||
// src/index.ts | ||
var prompt = (config2) => { | ||
console.log(config); | ||
}; | ||
var getClient = (options) => { | ||
const secretKey = (options == null ? void 0 : options.secretKey) || process.env.CONTENTIAL_SECRET_KEY; | ||
if (!secretKey) { | ||
throw new Error("Missing: secretKey"); | ||
} | ||
return { prompt: prompt.bind(null, { secretKey }) }; | ||
}; | ||
var src_default = prompt; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
prompt | ||
getClient | ||
}); |
{ | ||
"name": "@contential/prompt", | ||
"version": "0.0.0-test", | ||
"version": "0.0.1-test", | ||
"license": "MIT", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"dev": "tsup src/index.ts --dts --watch", | ||
"dev": "tsup src/index.ts --format cjs,esm --dts --watch", | ||
"clean": "rimraf dist", | ||
@@ -18,3 +18,5 @@ "build": "npm-run-all clean build:main", | ||
}, | ||
"devDependencies": {} | ||
"devDependencies": { | ||
"@contential/config": "*" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3897
87
1