@altano/html-cdnify 3.0.0 → 3.0.1

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.
@@ -1,4 +1,4 @@
1
- import * as HtmlAttributeStreamTransformer from "./HtmlAttributeStreamTransformer";
1
+ import * as HtmlAttributeStreamTransformer from "./HtmlAttributeStreamTransformer.js";
2
2
  export type CDNTransformFunction = (cdnUrl: string, oldUrl: string, bufferPath: string) => string;
3
3
  export interface CDNTransformerOptions {
4
4
  cdnUrl: string;
@@ -1,6 +1,6 @@
1
1
  import { unionBy, merge, mergeWith } from "lodash";
2
- import urlConverter from "./urlConverter";
3
- import * as HtmlAttributeStreamTransformer from "./HtmlAttributeStreamTransformer";
2
+ import urlConverter from "./urlConverter.js";
3
+ import * as HtmlAttributeStreamTransformer from "./HtmlAttributeStreamTransformer.js";
4
4
  class OptionsMerger {
5
5
  static isTransformDefinition(a) {
6
6
  return a != null && typeof a === "object" && "selector" in a && "attribute" in a && typeof a.selector === "string" && typeof a.selector === "string" && typeof a.attribute === "string";
@@ -1,4 +1,4 @@
1
- import HtmlTransformer from "./HtmlTransformer";
1
+ import HtmlTransformer from "./HtmlTransformer.js";
2
2
  export interface HtmlAttributeStreamTransformerOptions {
3
3
  transformDefinitions: TransformDefinition[];
4
4
  transformFunction: TransformFunction;
@@ -1,5 +1,5 @@
1
1
  import { groupBy } from "lodash";
2
- import HtmlTransformer from "./HtmlTransformer";
2
+ import HtmlTransformer from "./HtmlTransformer.js";
3
3
  class HtmlAttributeStreamTransformer extends HtmlTransformer {
4
4
  constructor(options) {
5
5
  super();
@@ -1,5 +1,5 @@
1
1
  /// <reference types="./types/trumpet.d.ts" />
2
- /// <reference types="node" />
2
+ /// <reference types="node" resolution-mode="require"/>
3
3
  import { type Trumpet } from "@gofunky/trumpet";
4
4
  export interface TrumpetTransformStream extends Trumpet {
5
5
  }
package/dist/cdnify.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- import { CDNTransformerOptions } from "./CDNTransformer";
3
- export * from "./CDNTransformer";
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import { CDNTransformerOptions } from "./CDNTransformer.js";
3
+ export * from "./CDNTransformer.js";
4
4
  export interface CdnifyOptions extends CDNTransformerOptions {
5
5
  buffer: string | Buffer;
6
6
  }
package/dist/cdnify.js CHANGED
@@ -1,5 +1,5 @@
1
- import { CDNTransformer } from "./CDNTransformer";
2
- export * from "./CDNTransformer";
1
+ import { CDNTransformer } from "./CDNTransformer.js";
2
+ export * from "./CDNTransformer.js";
3
3
  import streamifier from "streamifier";
4
4
  function cdnify(options) {
5
5
  if (typeof options.buffer !== "string") {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./cdnify";
2
- export * from "./CDNTransformer";
1
+ export * from "./cdnify.js";
2
+ export * from "./CDNTransformer.js";
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./cdnify";
2
- export * from "./CDNTransformer";
1
+ export * from "./cdnify.js";
2
+ export * from "./CDNTransformer.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altano/html-cdnify",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": "./dist/index.js",
@@ -45,6 +45,7 @@
45
45
  "eslint": "^8.57.0",
46
46
  "prettier": "^3.2.5",
47
47
  "typescript": "^5.4.2",
48
+ "vite": "^5.2.8",
48
49
  "vitest": "^1.4.0",
49
50
  "@altano/tsconfig": "0.0.0",
50
51
  "eslint-config-altano": "0.0.0"