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

@internetarchive/lazy-loader-service

Package Overview
Dependencies
Maintainers
18
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@internetarchive/lazy-loader-service - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1-alpha.1

0

.eslintrc.js

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ window.testService = {

6

dist/index.d.ts

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

export { LazyLoaderService, LazyLoaderServiceOptions, } from './src/lazy-loader-service';
export { LazyLoaderServiceInterface, LazyLoaderServiceEvents, } from './src/lazy-loader-service-interface';
export { BundleType } from './src/bundle-type';
export { LazyLoaderService, LazyLoaderServiceOptions, } from './src/lazy-loader-service.js';
export { LazyLoaderServiceInterface, LazyLoaderServiceEvents, } from './src/lazy-loader-service-interface.js';
export { BundleType } from './src/bundle-type.js';

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

export { LazyLoaderService, } from './src/lazy-loader-service';
export { LazyLoaderService, } from './src/lazy-loader-service.js';
//# sourceMappingURL=index.js.map
export declare type BundleType = 'module' | 'nomodule';
export {};
//# sourceMappingURL=bundle-type.js.map

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

import { BundleType } from './bundle-type';
import { BundleType } from './bundle-type.js';
import { Unsubscribe } from 'nanoevents';

@@ -3,0 +3,0 @@ export interface LazyLoaderServiceEvents {

export {};
//# sourceMappingURL=lazy-loader-service-interface.js.map
import { Unsubscribe } from 'nanoevents';
import type { BundleType } from './bundle-type';
import { LazyLoaderServiceEvents, LazyLoaderServiceInterface } from './lazy-loader-service-interface';
import type { BundleType } from './bundle-type.js';
import { LazyLoaderServiceEvents, LazyLoaderServiceInterface } from './lazy-loader-service-interface.js';
export interface LazyLoaderServiceOptions {

@@ -5,0 +5,0 @@ /**

import { __awaiter } from "tslib";
import { createNanoEvents } from 'nanoevents';
import { promisedSleep } from './promised-sleep';
import { promisedSleep } from './promised-sleep.js';
/**
* Attributes used to identify different script states
*/
var ScriptTagAttributes;

@@ -11,2 +14,5 @@ (function (ScriptTagAttributes) {

})(ScriptTagAttributes || (ScriptTagAttributes = {}));
/**
* Used to identify scripts loaded by the LazyLoaderService
*/
const scriptOwnerName = 'lazyLoaderService';

@@ -13,0 +19,0 @@ export class LazyLoaderService {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { __awaiter } from "tslib";

@@ -0,0 +0,0 @@ "use strict";

export {
LazyLoaderService,
LazyLoaderServiceOptions,
} from './src/lazy-loader-service';
} from './src/lazy-loader-service.js';
export {
LazyLoaderServiceInterface,
LazyLoaderServiceEvents,
} from './src/lazy-loader-service-interface';
export { BundleType } from './src/bundle-type';
} from './src/lazy-loader-service-interface.js';
export { BundleType } from './src/bundle-type.js';

@@ -0,0 +0,0 @@ /* eslint-disable import/no-extraneous-dependencies */

{
"name": "@internetarchive/lazy-loader-service",
"version": "0.2.0",
"version": "0.2.1-alpha.1",
"description": "A small library to lazy load javascript with a Promise",

@@ -9,2 +9,3 @@ "license": "AGPL-3.0-only",

"types": "dist/index.d.ts",
"type": "module",
"scripts": {

@@ -11,0 +12,0 @@ "start": "concurrently --kill-others --names tsc,wds \"npm run tsc:watch\" \"wds --app-index demo/index.html --node-resolve --open --watch\"",

@@ -0,0 +0,0 @@ [![Build Status](https://travis-ci.com/internetarchive/iaux-lazy-loader-service.svg?branch=master)](https://travis-ci.com/internetarchive/iaux-lazy-loader-service) [![codecov](https://codecov.io/gh/internetarchive/iaux-lazy-loader-service/branch/master/graph/badge.svg)](https://codecov.io/gh/internetarchive/iaux-lazy-loader-service)

export type BundleType = 'module' | 'nomodule';

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

import { BundleType } from './bundle-type';
import { BundleType } from './bundle-type.js';
import { Unsubscribe } from 'nanoevents';

@@ -3,0 +3,0 @@

import { createNanoEvents, Unsubscribe } from 'nanoevents';
import type { BundleType } from './bundle-type';
import type { BundleType } from './bundle-type.js';
import {
LazyLoaderServiceEvents,
LazyLoaderServiceInterface,
} from './lazy-loader-service-interface';
import { promisedSleep } from './promised-sleep';
} from './lazy-loader-service-interface.js';
import { promisedSleep } from './promised-sleep.js';

@@ -9,0 +9,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { expect, fixture, html } from '@open-wc/testing';

@@ -0,0 +0,0 @@ const http = require('http');

@@ -0,0 +0,0 @@ // Typescript doesn't want you to define arbitrary services like this on `window` (for good reason)

@@ -0,0 +0,0 @@ {

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

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

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

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 too big to display

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

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

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

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