@internetarchive/lazy-loader-service
Advanced tools
Comparing version 0.2.0 to 0.2.1-alpha.1
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ window.testService = { |
@@ -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 @@ /** |
export {}; |
@@ -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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
419041
6098
Yes
57
3