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

cc-api-next

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-api-next - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

9

index.js
const fetch = require('isomorphic-unfetch');
import Cookies from 'universal-cookie';
const cookies = new Cookies();
class Api {

@@ -20,9 +17,7 @@

setToken(token){
this.headers['x-token'] = token || cookies.get(this.tokenKey);
this.headers['x-token'] = token;
}
async call(path, data, config) {
if(!this.headers['x-token']){
this.setToken();
}
if(config === undefined){

@@ -29,0 +24,0 @@ config = data || {};

{
"name": "cc-api-next",
"version": "1.0.4",
"version": "1.0.5",
"description": "cc api next",

@@ -5,0 +5,0 @@ "main": "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