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

appolo-utils

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appolo-utils - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

2

lib/functions.js

@@ -21,3 +21,3 @@ "use strict";

if (now - lastTime >= timeFrame) {
func.apply(null, arguments);
func.apply(this, arguments);
lastTime = now;

@@ -24,0 +24,0 @@ }

export class Functions {
public static memoize(fn: Function, resolver: (args?: any[]) => string | number) {
public static memoize(fn: Function, resolver?: (args?: any[]) => string | number) {
let cache = {};

@@ -26,3 +26,3 @@ return (...args) => {

if (now - lastTime >= timeFrame) {
func.apply(null, arguments);
func.apply(this, arguments);
lastTime = now;

@@ -33,3 +33,3 @@ }

public static debounce(func: Function, wait: number, immediate: boolean) {
public static debounce(func: Function, wait: number, immediate?: boolean) {
let timeout;

@@ -36,0 +36,0 @@ return function () {

@@ -17,3 +17,3 @@ {

"main": "./index.js",
"version": "0.0.39",
"version": "0.0.40",
"license": "MIT",

@@ -20,0 +20,0 @@ "repository": {

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