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.47 to 0.0.48

16

dist/index.es.js

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

// @ts-ignore
if (!localStorage && wx.getStorageSync) {
// @ts-ignore
localStorage = wx.getStorageSync;
}
var sessionStorage = global.sessionStorage || {
setItem: function (name, value) { return (cacheObj[name] = value); },
getItem: function (name) { return cacheObj[name]; }
};
// @ts-ignore
if (!sessionStorage) {
// @ts-ignore
sessionStorage = {
setItem: function (name, value) { return (cacheObj[name] = value); },
getItem: function (name) { return cacheObj[name]; }
};
}
var localStorage = global.localStorage || process.env.REMAX_PLATFORM === 'wecaht' ? wx.getStorageSync : process.env.REMAX_PLATFORM === 'ali' ? my.getStorageSync : sessionStorage;
var localStore = {

@@ -25,0 +19,0 @@ setItem: function (name, value) {

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

// @ts-ignore
if (!localStorage && wx.getStorageSync) {
// @ts-ignore
localStorage = wx.getStorageSync;
}
var sessionStorage = global.sessionStorage || {
setItem: function (name, value) { return (cacheObj[name] = value); },
getItem: function (name) { return cacheObj[name]; }
};
// @ts-ignore
if (!sessionStorage) {
// @ts-ignore
sessionStorage = {
setItem: function (name, value) { return (cacheObj[name] = value); },
getItem: function (name) { return cacheObj[name]; }
};
}
var localStorage = global.localStorage || process.env.REMAX_PLATFORM === 'wecaht' ? wx.getStorageSync : process.env.REMAX_PLATFORM === 'ali' ? my.getStorageSync : sessionStorage;
var localStore = {

@@ -29,0 +23,0 @@ setItem: function (name, value) {

{
"name": "create-api-hooks",
"version": "0.0.47",
"version": "0.0.48",
"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