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

fastapi-poe

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastapi-poe - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

packages/poe-bot-template/_.gitignore

51

dist/bin.js
import { Command as i } from "commander";
import { confirm as m, password as p } from "@inquirer/prompts";
import a from "node:path";
import { access as d, cp as f, writeFile as n, readFile as u } from "node:fs/promises";
import { confirm as m, password as d } from "@inquirer/prompts";
import t from "node:path";
import { access as p, cp as f, writeFile as n, rename as u, readFile as v } from "node:fs/promises";
import { fileURLToPath as w } from "node:url";
import c from "chalk";
const v = "0.1.2", g = a.resolve(
a.dirname(w(import.meta.url)),
const g = "0.1.3", h = t.resolve(
t.dirname(w(import.meta.url)),
".."
), h = async (e) => d(e).then(() => !0).catch(() => !1);
), P = async (e) => p(e).then(() => !0).catch(() => !1);
async function y(e) {
const s = a.resolve(g, "./packages/poe-bot-template");
await f(s, e.distPath, {
const r = t.resolve(h, "./packages/poe-bot-template");
await f(r, e.distPath, {
recursive: !0,
force: !0,
dereference: !0,
filter: (t) => a.basename(t) !== "node_modules"
filter: (a) => t.basename(a) !== "node_modules"
}), await n(
a.resolve(e.distPath, ".dev.vars"),
t.resolve(e.distPath, ".dev.vars"),
`ACCESS_KEY="${e.accessKey}"`
);
const o = async (t, r) => {
const l = await u(t, "utf-8");
await n(t, r(l));
const s = async (a, o) => {
const l = await v(a, "utf-8");
await n(a, o(l));
};
await Promise.all(
["package.json", "wrangler.toml", "src/index.ts"].map(
(t) => o(
a.resolve(e.distPath, t),
(r) => r.replace("poe-bot-template", e.name)
(a) => s(
t.resolve(e.distPath, a),
(o) => o.replace("poe-bot-template", e.name)
)
)
).concat([
u(
t.resolve(e.distPath, "_.gitignore"),
t.resolve(e.distPath, ".gitignore")
)
])
);

@@ -37,4 +42,4 @@ }

new i("init").arguments("<project-name>").action(async (e) => {
const s = a.resolve(e);
if (await h(s) && !await m({
const r = t.resolve(e);
if (await P(r) && !await m({
message: "Directory already exists, do you want to overwrite it?",

@@ -44,3 +49,3 @@ default: !1

return;
const o = await p({
const s = await d({
message: "Input Poe Server Bot Access key",

@@ -51,4 +56,4 @@ mask: "*"

name: e,
accessKey: o,
distPath: s
accessKey: s,
distPath: r
}), console.log(`

@@ -58,2 +63,2 @@ ✨ PoeAI server bot project create success!

})
).version(v).parse();
).version(g).parse();
{
"name": "fastapi-poe",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",

@@ -28,6 +28,4 @@ "bin": {

"devDependencies": {
"@cloudflare/workers-types": "^4.20240815.0",
"@liuli-util/test": "^3.8.0",
"@liuli-util/vite-plugin-node": "^0.9.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.4.1",

@@ -43,5 +41,3 @@ "typescript": "^5.5.4",

"commander": "^12.1.0",
"fs-extra": "^11.2.0",
"hono": "^4.5.6",
"lodash-es": "^4.17.21"
"hono": "^4.5.6"
},

@@ -48,0 +44,0 @@ "scripts": {

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