@miniflare/html-rewriter
Advanced tools
Comparing version 2.0.0-next.3 to 2.0.0-rc.1
@@ -1,6 +0,5 @@ | ||
import { Compatibility } from '@miniflare/shared'; | ||
import type { DocumentHandlers } from 'html-rewriter-wasm'; | ||
import type { ElementHandlers } from 'html-rewriter-wasm'; | ||
import { Log } from '@miniflare/shared'; | ||
import { Plugin } from '@miniflare/shared'; | ||
import { PluginContext } from '@miniflare/shared'; | ||
import { Response as Response_2 } from 'undici'; | ||
@@ -18,3 +17,3 @@ import { Response as Response_3 } from '@miniflare/core'; | ||
export declare class HTMLRewriterPlugin extends Plugin { | ||
constructor(log: Log, compat: Compatibility); | ||
constructor(ctx: PluginContext); | ||
setup(): SetupResult; | ||
@@ -21,0 +20,0 @@ } |
@@ -51,6 +51,6 @@ // packages/html-rewriter/src/plugin.ts | ||
} | ||
} else if (typeof chunk === "string") { | ||
throw new TypeError("This TransformStream is being used as a byte stream, but received a string on its writable side. If you wish to write a string, you'll probably want to explicitly UTF-8-encode it with TextEncoder."); | ||
} else { | ||
throw new TypeError("This TransformStream is being used as a byte stream, but received an object of non-ArrayBuffer/ArrayBufferView type on its writable side."); | ||
rewriter.free(); | ||
const isString = typeof chunk === "string"; | ||
throw new TypeError("This TransformStream is being used as a byte stream, but received " + (isString ? "a string on its writable side. If you wish to write a string, you'll probably want to explicitly UTF-8-encode it with TextEncoder." : "an object of non-ArrayBuffer/ArrayBufferView type on its writable side.")); | ||
} | ||
@@ -75,4 +75,4 @@ }, | ||
var HTMLRewriterPlugin = class extends Plugin { | ||
constructor(log, compat) { | ||
super(log, compat); | ||
constructor(ctx) { | ||
super(ctx); | ||
} | ||
@@ -79,0 +79,0 @@ setup() { |
{ | ||
"name": "@miniflare/html-rewriter", | ||
"version": "2.0.0-next.3", | ||
"version": "2.0.0-rc.1", | ||
"description": "HTMLRewriter module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -39,4 +39,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/core": "2.0.0-next.3", | ||
"@miniflare/shared": "2.0.0-next.3", | ||
"@miniflare/core": "2.0.0-rc.1", | ||
"@miniflare/shared": "2.0.0-rc.1", | ||
"html-rewriter-wasm": "^0.3.2", | ||
@@ -46,4 +46,4 @@ "undici": "^4.9.3" | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.0.0-next.3" | ||
"@miniflare/shared-test": "2.0.0-rc.1" | ||
} | ||
} |
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
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
6079
+ Added@miniflare/core@2.0.0-rc.1(transitive)
+ Added@miniflare/shared@2.0.0-rc.1(transitive)
- Removed@miniflare/core@2.0.0-next.3(transitive)
- Removed@miniflare/shared@2.0.0-next.3(transitive)
Updated@miniflare/core@2.0.0-rc.1
Updated@miniflare/shared@2.0.0-rc.1