openwrangler 0.0.1 → 0.0.2

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.
package/dist/index.d.mts CHANGED
@@ -4,12 +4,9 @@ interface BindingsConfig {
4
4
  accountId: string;
5
5
  apiToken: string;
6
6
  }
7
- interface Bindings {
8
- r2: R2Bucket;
9
- kv: KVNamespace;
10
- d1: D1Database;
11
- }
12
- declare function getBindings(config: BindingsConfig): Bindings;
7
+ declare function createR2Binding(config: BindingsConfig, bucketName: string): R2Bucket;
8
+ declare function createKVBinding(config: BindingsConfig, namespaceId: string): KVNamespace;
9
+ declare function createD1Binding(config: BindingsConfig, databaseId: string): D1Database;
13
10
 
14
- export { getBindings };
15
- export type { Bindings, BindingsConfig };
11
+ export { createD1Binding, createKVBinding, createR2Binding };
12
+ export type { BindingsConfig };
package/dist/index.d.ts CHANGED
@@ -4,12 +4,9 @@ interface BindingsConfig {
4
4
  accountId: string;
5
5
  apiToken: string;
6
6
  }
7
- interface Bindings {
8
- r2: R2Bucket;
9
- kv: KVNamespace;
10
- d1: D1Database;
11
- }
12
- declare function getBindings(config: BindingsConfig): Bindings;
7
+ declare function createR2Binding(config: BindingsConfig, bucketName: string): R2Bucket;
8
+ declare function createKVBinding(config: BindingsConfig, namespaceId: string): KVNamespace;
9
+ declare function createD1Binding(config: BindingsConfig, databaseId: string): D1Database;
13
10
 
14
- export { getBindings };
15
- export type { Bindings, BindingsConfig };
11
+ export { createD1Binding, createKVBinding, createR2Binding };
12
+ export type { BindingsConfig };
package/dist/index.mjs CHANGED
@@ -1,18 +1,11 @@
1
- function getBindings(config) {
2
- return {
3
- r2: createR2Binding(),
4
- kv: createKVBinding(),
5
- d1: createD1Binding()
6
- };
7
- }
8
- function createR2Binding(config) {
1
+ function createR2Binding(config, bucketName) {
9
2
  throw new Error("Not implemented");
10
3
  }
11
- function createKVBinding(config) {
4
+ function createKVBinding(config, namespaceId) {
12
5
  throw new Error("Not implemented");
13
6
  }
14
- function createD1Binding(config) {
7
+ function createD1Binding(config, databaseId) {
15
8
  throw new Error("Not implemented");
16
9
  }
17
10
 
18
- export { getBindings };
11
+ export { createD1Binding, createKVBinding, createR2Binding };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openwrangler",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -13,16 +13,16 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
- "scripts": {
17
- "dev": "nuxi dev playground",
18
- "build": "unbuild"
19
- },
20
16
  "devDependencies": {
21
- "@binochoi/nitro-cloudflare-dev": "workspace:*",
22
17
  "@cloudflare/workers-types": "^4.20251231.0",
23
18
  "nuxt": "^3.15.0",
24
19
  "typescript": "^5.7.2",
25
20
  "unbuild": "^3.3.1",
26
- "wrangler": "^3.99.0"
21
+ "wrangler": "^3.99.0",
22
+ "@binochoi/nitro-cloudflare-dev": "npm:@bino0216/nitro-cloudflare-dev@0.2.4"
23
+ },
24
+ "scripts": {
25
+ "dev": "nuxi dev playground",
26
+ "build": "unbuild"
27
27
  }
28
- }
28
+ }