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

create-api-hooks

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-api-hooks - npm Package Compare versions

Comparing version 0.0.42 to 0.0.43

19

dist/index.es.js

@@ -11,11 +11,14 @@ import { useEffect, useState, useCallback, useRef } from 'react';

// @ts-ignore
localStorage = localStorage || wx.getStorageSync || {
getItem: function () { },
setItem: function () { }
};
if (!localStorage && wx.getStorageSync) {
// @ts-ignore
localStorage = wx.getStorageSync;
}
// @ts-ignore
sessionStorage = sessionStorage || wx.getStorageSync || {
getItem: function () { },
setItem: function () { }
};
if (!sessionStorage) {
// @ts-ignore
sessionStorage = {
setItem: function (name, value) { return (cacheObj[name] = value); },
getItem: function (name) { return cacheObj[name]; }
};
}
function createApiHooks(request) {

@@ -22,0 +25,0 @@ var getRequestString = function (params) {

@@ -15,11 +15,14 @@ 'use strict';

// @ts-ignore
localStorage = localStorage || wx.getStorageSync || {
getItem: function () { },
setItem: function () { }
};
if (!localStorage && wx.getStorageSync) {
// @ts-ignore
localStorage = wx.getStorageSync;
}
// @ts-ignore
sessionStorage = sessionStorage || wx.getStorageSync || {
getItem: function () { },
setItem: function () { }
};
if (!sessionStorage) {
// @ts-ignore
sessionStorage = {
setItem: function (name, value) { return (cacheObj[name] = value); },
getItem: function (name) { return cacheObj[name]; }
};
}
function createApiHooks(request) {

@@ -26,0 +29,0 @@ var getRequestString = function (params) {

{
"name": "create-api-hooks",
"version": "0.0.42",
"version": "0.0.43",
"description": "",

@@ -5,0 +5,0 @@ "author": "mushan0x0",

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