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

cf-bindings-proxy

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-bindings-proxy - npm Package Versions

1
57

0.2.3

Diff

Changelog

Source

0.2.3

Patch Changes

  • ab8484a: Fix D1Result undefined properties returning truthy value.
elicx
published 0.2.2-ab8484a •

elicx
published 0.2.2-406efa5 •

elicx
published 0.2.2 •

Changelog

Source

0.2.2

Patch Changes

  • 5289f47: Fix accessing an instance of a binding through a variable multiple times interfacing on the same instance - create a new proxy instance for each time the binding is accessed.

    The below code is a good example of this fix. Previously, each time an action was performed using the d1 variable, it was always interfacing with the same instance. This change fixes that, so that each time the d1 variable is accessed below, it is interfacing with an entirely new instance of the binding. This prevents different actions on a binding via a variable from breaking each other.

    const insertQuery = [
    	`INSERT INTO comments (author, body, post_slug) VALUES ('Markus', 'Hello there!', ?);`,
    	`INSERT INTO comments (author, body, post_slug) VALUES ('Kristian', 'Great post!', ?);`,
    ];
    
    const d1 = binding<D1Database>('D1');
    
    const statements = insertQuery.map((query) => d1.prepare(query).bind('hello-world'));
    await d1.batch(statements);
    
elicx
published 0.2.1-5289f47 •

elicx
published 0.2.1-54bbefd •

elicx
published 0.2.1 •

Changelog

Source

0.2.1

Patch Changes

  • 0c387c0: Pass a compatibility date by default.
  • 0c387c0: Log information about the tool to the console on startup.
elicx
published 0.2.0-0c387c0 •

elicx
published 0.2.0-ef3e906 •

elicx
published 0.2.0 •

Changelog

Source

0.2.0

Minor Changes

  • 0f37886: Initial support for running a proxy for bindings with D1/KV/R2.
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