Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contential/prompt

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contential/prompt - npm Package Compare versions

Comparing version 0.0.0-test to 0.0.1-test

14

dist/index.d.ts

@@ -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
});

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc