add JSR support
This commit is contained in:
26
dist/src/fluent-dom-esm.d.ts
vendored
26
dist/src/fluent-dom-esm.d.ts
vendored
@@ -1,28 +1,6 @@
|
|||||||
/**
|
import { FluentDomObject } from './fluent-dom-esm.types';
|
||||||
* fluent-dom-esm v1.1.0
|
|
||||||
*
|
|
||||||
* Fluent DOM Manipulation, adapted to ESM and cranked up to v1.1(.0).
|
|
||||||
*
|
|
||||||
* https://git.itsericwoodward.com/eric/fluent-dom-esm
|
|
||||||
*
|
|
||||||
* v1.1.0 Copyright (c) 2025 Eric Woodward
|
|
||||||
* Original copyright (c) 2009 Tommy Montgomery (https://glacius.tmont.com/articles/fluent-dom-manipulation-in-javascript)
|
|
||||||
*
|
|
||||||
* Released under the WTFPL (Do What the Fuck You Want to Public License)
|
|
||||||
*
|
|
||||||
* @author Eric Woodward (v1.1.0 update)
|
|
||||||
* @author Tommy Montgomery (original)
|
|
||||||
* @license http://sam.zoy.org/wtfpl/
|
|
||||||
*/
|
|
||||||
/**
|
/**
|
||||||
* IIFE that creates the FluentDomObject as default export
|
* IIFE that creates the FluentDomObject as default export
|
||||||
*/
|
*/
|
||||||
declare const _default: {
|
declare const _default: FluentDomObject;
|
||||||
(node: HTMLElement): any;
|
|
||||||
/**
|
|
||||||
* Creates a new HTML element which is wrapped in a FluentDomObject and returned
|
|
||||||
*/
|
|
||||||
create: (tagName: string) => any;
|
|
||||||
c(tagName: string): any;
|
|
||||||
};
|
|
||||||
export default _default;
|
export default _default;
|
||||||
|
5
jsr.json
Normal file
5
jsr.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "@itsericwoodward/fluent-dom-esm",
|
||||||
|
"version": "1.1.0",
|
||||||
|
"exports": "./src/fluent-dom-esm.ts"
|
||||||
|
}
|
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
import type { FluentDomObject } from "./fluent-dom-esm.types";
|
import type { FluentDomObject } from "./fluent-dom-esm.types";
|
||||||
|
|
||||||
import { version } from "../package.json";
|
import { version } from "../package.json" with { type: "json" };
|
||||||
import {
|
import {
|
||||||
isFluentDomObject,
|
isFluentDomObject,
|
||||||
isHTMLElement,
|
isHTMLElement,
|
||||||
@@ -261,4 +261,4 @@ export default (function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return FluentDom;
|
return FluentDom;
|
||||||
})();
|
})() as unknown as FluentDomObject;
|
||||||
|
Reference in New Issue
Block a user