Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@miniflare/html-rewriter

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/html-rewriter - npm Package Compare versions

Comparing version 2.0.0-next.3 to 2.0.0-rc.1

5

dist/src/index.d.ts

@@ -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 @@ }

10

dist/src/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc