mount-observer 0.0.85 → 0.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mount-observer",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
@@ -41,10 +41,6 @@
41
41
  "default": "./doCleanup.js",
42
42
  "types": "./doCleanup.ts"
43
43
  },
44
- "./getContent.js": {
45
- "default": "./getContent.js",
46
- "types": "./getContent.ts"
47
- },
48
44
  "./waitForEvent.js": {
49
45
  "default": "./waitForEvent.js",
50
46
  "types": "./waitForEvent.ts"
package/getContent.js DELETED
@@ -1,10 +0,0 @@
1
- import { waitForEvent } from './waitForEvent.js';
2
- export async function getContent(templ) {
3
- const templWithRemoteContent = templ;
4
- if (templWithRemoteContent.remoteContent)
5
- return templWithRemoteContent.remoteContent;
6
- await waitForEvent(templ, 'load');
7
- if (templWithRemoteContent.remoteContent)
8
- return templWithRemoteContent.remoteContent;
9
- throw 500; //remote content not loaded
10
- }
package/getContent.ts DELETED
@@ -1,10 +0,0 @@
1
- import {waitForEvent} from './waitForEvent.js';
2
- import {TemplateWithRemoteContent} from './ts-refs/mount-observer/types.js';
3
-
4
- export async function getContent(templ: HTMLTemplateElement) {
5
- const templWithRemoteContent = templ as TemplateWithRemoteContent;
6
- if(templWithRemoteContent.remoteContent) return templWithRemoteContent.remoteContent;
7
- await waitForEvent(templ, 'load');
8
- if(templWithRemoteContent.remoteContent) return templWithRemoteContent.remoteContent;
9
- throw 500; //remote content not loaded
10
- }