Socket
Socket
Sign inDemoInstall

asset-preloader

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

2

dist/index.d.ts

@@ -1,1 +0,1 @@

export { createPreloader } from './lib/preloader';
export { createPreloader, Asset, ProgressPayload } from './lib/preloader';

@@ -6,3 +6,3 @@ export declare const getItemByUrl: (context: PreloaderContext) => (url: string) => Asset | null;

export declare const fetch: (context: PreloaderContext) => (urls: Array<string>) => Promise<Assets>;
declare type Asset = {
export declare type Asset = {
xhr: XMLHttpRequest;

@@ -21,3 +21,3 @@ blobUrl: string | null;

declare type Assets = Array<Asset>;
declare type ProgressPayload = {
export declare type ProgressPayload = {
item: Asset;

@@ -24,0 +24,0 @@ progress: number;

{
"name": "asset-preloader",
"version": "0.1.1",
"version": "0.1.2",
"author": "skulptur",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,1 +0,1 @@

export { createPreloader } from './lib/preloader'
export { createPreloader, Asset, ProgressPayload } from './lib/preloader'

@@ -111,3 +111,3 @@ // code adapted from and improved upon https://github.com/andreupifarre/preload-it

type Asset = {
export type Asset = {
xhr: XMLHttpRequest

@@ -128,3 +128,3 @@ blobUrl: string | null

type ProgressPayload = {
export type ProgressPayload = {
item: Asset

@@ -131,0 +131,0 @@ progress: number

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc