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

@literate.ink/utilities

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@literate.ink/utilities - npm Package Compare versions

Comparing version 1.0.0-10281844077.1 to 1.0.0-10336585950.1

2

dist/index.js

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

"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{defaultFetcher:()=>l,getCookiesFromResponse:()=>c,getHeaderFromResponse:()=>d,setHeaderToRequest:()=>i}),module.exports=(e=a,((e,a,n,c)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let d of o(a))s.call(e,d)||d===n||t(e,d,{get:()=>a[d],enumerable:!(c=r(a,d))||c.enumerable});return e})(t({},"__esModule",{value:!0}),e));var n=require("set-cookie-parser"),c=e=>{const t=d(e,"set-cookie");return null===t?[]:(0,n.splitCookiesString)(t).map((e=>e.split(";")[0]))},d=(e,t)=>{const r=e.headers;return u(r)?r.get(t):r[t]},u=e=>"function"==typeof e.get,i=(e,t,r)=>{e.headers||(e.headers={}),u(e.headers)?e.headers.set(t,r):e.headers[t]=r},l=async e=>{const t=await fetch(e.url.href,{redirect:e.redirect??"follow",headers:e.headers??{},method:e.method??"GET",body:e.content});return{status:t.status,content:await t.text(),headers:t.headers}};//# sourceMappingURL=index.js.map
"use strict";var e=require("set-cookie-parser"),t=(e,t)=>{const s=e.headers;return r(s)?s.get(t):s[t]},r=e=>"function"==typeof e.get;exports.defaultFetcher=async e=>{const t=await fetch(e.url.href,{redirect:e.redirect??"follow",headers:e.headers??{},method:e.method??"GET",body:e.content});return{status:t.status,content:await t.text(),headers:t.headers}},exports.getCookiesFromResponse=r=>{const s=t(r,"set-cookie");return null===s?[]:e.splitCookiesString(s).map((e=>e.split(";")[0]))},exports.getHeaderFromResponse=t,exports.setHeaderToRequest=(e,t,s)=>{e.headers||(e.headers={}),r(e.headers)?e.headers.set(t,s):e.headers[t]=s};//# sourceMappingURL=index.js.map
{
"name": "@literate.ink/utilities",
"version": "1.0.0-10281844077.1",
"version": "1.0.0-10336585950.1",
"description": "A general package containing utilities for helping building our libraries.",

@@ -26,3 +26,3 @@ "repository": "https://github.com/LiterateInk/Utilities",

],
"author": "LiterateInk <contact@literate.ink> (https://github.com/LiterateInk)",
"author": "LiterateInk <contact@literate.ink> (https://literate.ink)",
"homepage": "https://docs.literate.ink/utilities",

@@ -29,0 +29,0 @@ "bugs": {

Sorry, the diff of this file is not supported yet

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