create-discord-https 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-discord-https",
3
3
  "description": "Create Discord.https-powered bots with one command.",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "bin": {
6
6
  "create-discord-https": "index.js"
7
7
  },
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "description": "Discord HTTPS interaction callback bot powered by discord.https",
6
- "main": "index.js",
6
+ "main": "src/index.js",
7
7
  "scripts": {
8
8
  "dev": "node src/spawner.js",
9
9
  "deploy": "npx wrangler deploy --env production",
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "description": "Discord HTTPS interaction callback bot powered by discord.https",
6
- "main": "index.js",
6
+ "main": "src/index.ts",
7
7
  "scripts": {
8
8
  "dev": "node src/spawner.js",
9
9
  "deploy": "npx wrangler deploy --env production",
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "description": "Discord HTTPS interaction callback bot powered by discord.https",
6
- "main": "index.js",
6
+ "main": "src/index.js",
7
7
  "scripts": {
8
8
  "dev": "node src/index.js",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -3,7 +3,6 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "description": "Discord HTTPS interaction callback bot powered by discord.https",
6
- "main": "index.js",
7
6
  "scripts": {
8
7
  "test": "echo \"Error: no test specified\" && exit 1"
9
8
  },
@@ -3,7 +3,11 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "description": "Discord HTTPS interaction callback bot powered by discord.https",
6
- "main": "index.js",
6
+ "main": "api/interaction.js",
7
+ "files": [
8
+ "api",
9
+ "src"
10
+ ],
7
11
  "scripts": {
8
12
  "dev": "node src/spawner.js",
9
13
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,5 @@
1
+ import client from "../src/index.js";
2
+ import type { VercelRequest, VercelResponse } from "@vercel/functions";
3
+ export default async function handler(req: VercelRequest, res: VercelResponse) {
4
+ return await client.listen("api/interactions", req, res);
5
+ }
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "description": "Discord HTTPS interaction callback bot powered by discord.https",
6
- "main": "index.js",
6
+ "main": "api/interactions.ts",
7
7
  "scripts": {
8
8
  "dev": "node src/spawner.js",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,5 +0,0 @@
1
- import client from "../src/index.js";
2
-
3
- export default async function handler(req, res) {
4
- return await client.listen("api/interactions", req, res);
5
- }