Comparing version 1.3.7 to 1.4.0
{ | ||
"name": "spoondev", | ||
"version": "1.3.7", | ||
"description": "Wrapper oficial - imagenes para interaccion y api", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./lib/index.d.mts", | ||
"default": "./lib/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./lib/index.d.ts", | ||
"default": "./lib/index.js" | ||
} | ||
} | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"version": "1.4.0", | ||
"description": "Wrapper oficial de zeew - imagenes para interaccion y api", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node index.js", | ||
"build": "tsup" | ||
"start": "node index.js" | ||
}, | ||
"dependencies": { | ||
"node-superfetch": "^0.1.10" | ||
}, | ||
"author": "Juanppdev", | ||
@@ -34,8 +20,3 @@ "license": "MIT", | ||
"cards para discord" | ||
], | ||
"devDependencies": { | ||
"@types/node": "^20", | ||
"tsup": "latest", | ||
"typescript": "^5.7.3" | ||
} | ||
] | ||
} |
@@ -14,27 +14,15 @@ # Bienvenidos a Spoon | ||
``` | ||
const Spoon = require("spoondev"); | ||
const token = "aqui-va-tu-token" | ||
const Spoon = require('spoondev'); | ||
const img = new Zeew.img('tu-token'); | ||
const img = new Spoon.Img(token) | ||
const bienvenida = new img.card.bienvenida() | ||
.token(token) | ||
.titulo('Juanppdev') | ||
.colorTit('white') | ||
.colorDesc('black') | ||
.descripcion('Bienvenid@ al servidor') | ||
.avatar(interaction.user.avatarURL({extension: "png"})) | ||
.fondo('https://i.imgur.com/BdosPHw.png'); | ||
await wait(4000) | ||
const buffer = await img.card.render(bienvenida); | ||
if (Buffer.isBuffer(buffer)) { | ||
const attachment = new AttachmentBuilder(buffer, { name: 'default.png' }); | ||
await interaction.editReply({ | ||
files: [attachment], | ||
}); | ||
} else { | ||
console.error('Error: El recurso generado no es un buffer válido.'); | ||
} | ||
const card = new img.card | ||
.bienvenida() | ||
.token('to-token') | ||
.avatar('tu-avatar') | ||
.fondo('tu-fondo') | ||
.titulo('Bienvenido al servidor') | ||
.descripcion('Juanppdev'); | ||
const render = await img.card.render(card); | ||
``` | ||
@@ -41,0 +29,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
3695
1
8
88
30
+ Addednode-superfetch@^0.1.10
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@3.0.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednode-superfetch@0.1.11(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)