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

@mls-digital/highwire

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mls-digital/highwire - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "@mls-digital/highwire",
"version": "1.0.2",
"version": "1.0.3",
"description": "A high level HTTP client",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -94,10 +94,14 @@ # Highwire

import throttle from 'lodash.throttle'
import highwire from '@mls-digital/highwire'
import highwireFactory from '@kkemple/highwire'
const { get } = highwire()
const { get } = highwireFactory()
const headers = { authorization: `token ${process.env.GITHUB_AUTH_TOKEN}` }
const retries = 5
const getRepos = () => get('https://api.github.com/repos', { headers, retries })
function getRepos() {
return get('https://api.github.com/repos', { headers, retries })
}
/* action types */
const REPOS_REQUEST = 'REPOS_REQUEST'

@@ -108,10 +112,3 @@ const REPOS_REQUEST_SUCCESS = 'REPOS_REQUEST_SUCCESS'

const defaultState = {
isComplete: false,
hasError: false,
isWorking: false,
errorMessage: undefined,
repos: [],
}
/* action creators */
let currentRequest

@@ -137,2 +134,11 @@

/* reducer */
const defaultState = {
isComplete: false,
hasError: false,
isWorking: false,
errorMessage: undefined,
repos: [],
}
export default function reducer(state = defaultState, action) {

@@ -139,0 +145,0 @@ switch (action.type) {

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