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

pastebin-api

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pastebin-api - npm Package Compare versions

Comparing version 5.1.3 to 5.1.4

42

dist/index.js

@@ -0,1 +1,2 @@

"use strict";
var __defProp = Object.defineProperty;

@@ -5,3 +6,2 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;

var __hasOwnProp = Object.prototype.hasOwnProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {

@@ -11,15 +11,11 @@ for (var name in all)

};
var __reExport = (target, module2, copyDefault, desc) => {
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
for (let key of __getOwnPropNames(module2))
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return target;
return to;
};
var __toCommonJS = /* @__PURE__ */ ((cache) => {
return (module2, temp) => {
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
};
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -34,2 +30,3 @@ // src/index.ts

});
module.exports = __toCommonJS(src_exports);

@@ -100,3 +97,5 @@ // src/PasteClient.ts

if (!options.userKey) {
throw new TypeError(`${ERROR_PREFIX} 'userKey' must be provided (PasteClient#getPastesByUser)`);
throw new TypeError(
`${ERROR_PREFIX} 'userKey' must be provided (PasteClient#getPastesByUser)`
);
}

@@ -128,6 +127,10 @@ const res = await fetch(this.pasteBinUrl, {

if (!options.userKey) {
throw new TypeError(`${ERROR_PREFIX} 'userKey' must be provided (PasteClient#deletePasteByKey)`);
throw new TypeError(
`${ERROR_PREFIX} 'userKey' must be provided (PasteClient#deletePasteByKey)`
);
}
if (!options.pasteKey) {
throw new TypeError(`${ERROR_PREFIX} 'pasteKey' must be provided (PasteClient#deletePasteByKey)`);
throw new TypeError(
`${ERROR_PREFIX} 'pasteKey' must be provided (PasteClient#deletePasteByKey)`
);
}

@@ -152,6 +155,10 @@ const res = await fetch(this.pasteBinUrl, {

if (!options.userKey) {
throw new TypeError(`${ERROR_PREFIX} 'userKey' must be provided (PasteClient#getRawPasteByKey)`);
throw new TypeError(
`${ERROR_PREFIX} 'userKey' must be provided (PasteClient#getRawPasteByKey)`
);
}
if (!options.pasteKey) {
throw new TypeError(`${ERROR_PREFIX} 'pasteKey' must be provided (PasteClient#getRawPasteByKey)`);
throw new TypeError(
`${ERROR_PREFIX} 'pasteKey' must be provided (PasteClient#getRawPasteByKey)`
);
}

@@ -223,3 +230,2 @@ const res = await fetch(this.rawUrl, {

var src_default = PasteClient;
module.exports = __toCommonJS(src_exports);
// Annotate the CommonJS export names for ESM import in node:

@@ -226,0 +232,0 @@ 0 && (module.exports = {

{
"name": "pastebin-api",
"version": "5.1.3",
"version": "5.1.4",
"description": "A very simple npm package to interact with the pastebin api.",

@@ -38,3 +38,3 @@ "license": "MIT",

"fast-xml-parser": "^4.0.9",
"undici": "^5.8.0"
"undici": "^5.10.0"
},

@@ -51,9 +51,9 @@ "repository": {

"@casper124578/eslint-config": "^4.4.0",
"@types/node": "^18.6.3",
"dotenv": "^16.0.1",
"eslint": "^8.21.0",
"@types/node": "^18.7.14",
"dotenv": "^16.0.2",
"eslint": "^8.23.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"tsup": "^6.2.1",
"typescript": "^4.7.4"
"tsup": "^6.2.3",
"typescript": "^4.8.2"
},

@@ -60,0 +60,0 @@ "prettier": {

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