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

arctic

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arctic - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

6

dist/request.js
import { encodeBase64 } from "@oslojs/encoding";
import { OAuth2Tokens } from "./oauth2.js";
export function createOAuth2Request(endpoint, body) {
const bodyBytes = new TextEncoder().encode(body.toString());
const request = new Request(endpoint, {
method: "POST",
body
body: bodyBytes
});
request.headers.set("Content-Type", "application/x-www-form-urlencoded");
request.headers.set("Accept", "application/json");
// Required by GitHub, and probably by others as well
request.headers.set("User-Agent", "arctic");
// Required by Reddit
request.headers.set("Content-Length", bodyBytes.byteLength.toString());
return request;

@@ -12,0 +16,0 @@ }

2

package.json
{
"name": "arctic",
"type": "module",
"version": "2.3.2",
"version": "2.3.3",
"description": "OAuth 2.0 clients for popular providers",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

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