next-tinacms-azure 0.0.0-db8aa8e-20250228034006 → 0.0.0-df15737-20250329200825

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/auth.d.ts CHANGED
@@ -1,3 +1 @@
1
- import type { TinaCloudUser } from '@tinacms/auth';
2
- import type { NextRequest } from 'next/server';
3
- export declare const isAuthorized: (req: NextRequest) => Promise<TinaCloudUser | undefined>;
1
+ export * from "../src/auth"
@@ -1,11 +1 @@
1
- import type { AzureBlobStorageConfig } from './types';
2
- import { type NextRequest, NextResponse } from 'next/server';
3
- type RouteParams = {
4
- params: {
5
- path: string[];
6
- };
7
- };
8
- export declare const createMediaDeliveryHandlers: (config: AzureBlobStorageConfig) => {
9
- GET(req: NextRequest, context: RouteParams): Promise<NextResponse<unknown>>;
10
- };
11
- export {};
1
+ export * from "../src/delivery-handlers"
@@ -1830,7 +1830,10 @@ var createMediaDeliveryHandlers = (config) => {
1830
1830
  console.warn("Falling back to original image");
1831
1831
  const originalBuffer = Buffer.from(buffer);
1832
1832
  const headers = new Headers(response.headers);
1833
- headers.set("content-type", contentType || "application/octet-stream");
1833
+ headers.set(
1834
+ "content-type",
1835
+ contentType || "application/octet-stream"
1836
+ );
1834
1837
  headers.set("content-length", originalBuffer.length.toString());
1835
1838
  headers.set("cache-control", "public, max-age=3600");
1836
1839
  return new import_server.NextResponse(originalBuffer, {
@@ -1,13 +1 @@
1
- import type { AzureBlobStorageConfig } from './types';
2
- import { type NextRequest, NextResponse } from 'next/server';
3
- type RouteParams = {
4
- params: {
5
- media: string[];
6
- };
7
- };
8
- export declare const createMediaHandlers: (config: AzureBlobStorageConfig) => {
9
- GET(req: NextRequest): Promise<NextResponse<unknown>>;
10
- POST(req: NextRequest): Promise<NextResponse<unknown>>;
11
- DELETE(req: NextRequest, context?: RouteParams): Promise<NextResponse<unknown>>;
12
- };
13
- export {};
1
+ export * from "../src/handlers"
package/dist/handlers.js CHANGED
@@ -1732,7 +1732,9 @@ var createMediaHandlers = (config) => {
1732
1732
  };
1733
1733
  };
1734
1734
  async function uploadMedia(req, config) {
1735
- const client = import_storage_blob.BlobServiceClient.fromConnectionString(config.connectionString);
1735
+ const client = import_storage_blob.BlobServiceClient.fromConnectionString(
1736
+ config.connectionString
1737
+ );
1736
1738
  const containerClient = client.getContainerClient(config.containerName);
1737
1739
  const formData = await req.formData();
1738
1740
  const directory = formData.get("directory");
@@ -1760,7 +1762,9 @@ async function deleteAsset(_, context, config) {
1760
1762
  const options = {
1761
1763
  deleteSnapshots: "include"
1762
1764
  };
1763
- const client = import_storage_blob.BlobServiceClient.fromConnectionString(config.connectionString);
1765
+ const client = import_storage_blob.BlobServiceClient.fromConnectionString(
1766
+ config.connectionString
1767
+ );
1764
1768
  const containerClient = client.getContainerClient(config.containerName);
1765
1769
  const blockBlobClient = containerClient.getBlockBlobClient(blobName);
1766
1770
  await blockBlobClient.deleteIfExists(options);
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './azure-media-store';
2
- export * from './azure-tina-cloud-media-store';
1
+ export * from "../src/index"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-tinacms-azure",
3
- "version": "0.0.0-db8aa8e-20250228034006",
3
+ "version": "0.0.0-df15737-20250329200825",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,11 +38,11 @@
38
38
  "react": "^18.3.1",
39
39
  "react-dom": "^18.3.1",
40
40
  "typescript": "^5.7.3",
41
- "@tinacms/scripts": "0.0.0-db8aa8e-20250228034006",
42
- "tinacms": "0.0.0-db8aa8e-20250228034006"
41
+ "@tinacms/scripts": "1.3.3",
42
+ "tinacms": "0.0.0-df15737-20250329200825"
43
43
  },
44
44
  "peerDependencies": {
45
- "tinacms": "0.0.0-db8aa8e-20250228034006",
45
+ "tinacms": "0.0.0-df15737-20250329200825",
46
46
  "@tinacms/auth": "1.0.11"
47
47
  },
48
48
  "publishConfig": {