New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@doctadevs/utils

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doctadevs/utils - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

dist/src/http.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.request = void 0;
const request = async ({ url, method = 'GET', data, queryParams = {}, token = '', contentType = 'json', }) => fetch(`${url}${Object.entries(queryParams)
const node_fetch_1 = __importDefault(require("node-fetch"));
const request = async ({ url, method = 'GET', data, queryParams = {}, token = '', contentType = 'json', }) => node_fetch_1.default(`${url}${Object.entries(queryParams)
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)

@@ -6,0 +10,0 @@ .join('&')}`, {

2

package.json
{
"name": "@doctadevs/utils",
"version": "0.0.1",
"version": "0.0.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -0,1 +1,3 @@

import fetch from 'node-fetch';
export type RequestOptions = {

@@ -2,0 +4,0 @@ url: string;

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