New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bytescale/sdk

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytescale/sdk - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

8

dist/types/public/shared/generated/apis/FileApi.d.ts

@@ -13,3 +13,3 @@ /**

import * as runtime from "../runtime";
import type { AsyncResponse, CopyFileBatchRequest, CopyFileRequest, CopyFileResponse, DeleteFileBatchRequest, FileDetails, ProcessFileAndSaveRequest, ProcessFileAndSaveResponse } from "../models";
import type { AsyncResponse, CopyFileBatchRequest, CopyFileRequest, CopyFileResponse, DeleteFileBatchRequest, FileDetails, ProcessFileAndSaveRequest, ProcessFileAndSaveResponse, ProcessFileTransformationParamsParameterValue } from "../models";
export interface CopyFileOperationParams {

@@ -51,2 +51,5 @@ accountId: string;

large?: boolean;
transformationParams?: {
[key: string]: ProcessFileTransformationParamsParameterValue;
};
version?: string;

@@ -59,2 +62,5 @@ }

processFileAndSaveRequest: ProcessFileAndSaveRequest;
transformationParams?: {
[key: string]: ProcessFileTransformationParamsParameterValue;
};
}

@@ -61,0 +67,0 @@ /**

4

dist/types/public/shared/generated/runtime.d.ts

@@ -82,3 +82,3 @@ import { ErrorResponse } from "./models";

export declare type HTTPQuery = {
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
[key: string]: string | number | null | boolean | HTTPQuery;
};

@@ -102,3 +102,3 @@ export declare type HTTPBody = Json | FormData | URLSearchParams;

}
export declare function querystring(params: HTTPQuery, prefix?: string): string;
export declare function querystring(params: HTTPQuery): string;
export interface ApiResponse<T> {

@@ -105,0 +105,0 @@ raw: Response;

@@ -8,13 +8,17 @@ import { UrlBuilderConfig, UrlBuilderParams } from "./UrlBuilderTypes";

*
* Example 1) Raw file:
* Example 1) Getting a publicly-accessible raw file URL:
*
* new UrlBuilder().url({ accountId: "1234abc", filePath: "/example.jpg" })
*
* Example 2) Image resized to 500x500:
* Example 2) Getting a publicly-accessible image URL, resized to 500x500:
*
* new UrlBuilder().url({ accountId: "1234abc", filePath: "/example.jpg", transformation: { type: "image", params: { w: 500, h: 500, fit: "crop" } } })
* new UrlBuilder().url({ accountId: "1234abc", filePath: "/example.jpg", options: { transformation: { type: "image", params: { w: 500, h: 500, fit: "crop" } } } })
*
* Example 3) Image resized to 500x500, which is privately accessible (i.e. requires 'AuthManager.beginAuthSession' before it can be accessed):
* Example 3) Getting a privately-accessible image URL, resized to 500x500 (requires 'AuthManager.beginAuthSession' to be called before accessing the URL):
*
* new UrlBuilder().url({ accountId: "1234abc", filePath: "/example.jpg", transformation: { type: "image", params: { w: 500, h: 500, fit: "crop" } }, auth: true })
* new UrlBuilder().url({ accountId: "1234abc", filePath: "/example.jpg", options: { transformation: { type: "image", params: { w: 500, h: 500, fit: "crop" } }, auth: true } })
*
* Example 4) Getting a publicly-accessible image URL, resized using a transformation preset called "thumbnail" that was created manually in the Bytescale Dashboard:
*
* new UrlBuilder().url({ accountId: "1234abc", filePath: "/example.jpg", options: { transformation: { type: "preset", preset: "thumbnail" } } })
*/

@@ -21,0 +25,0 @@ url(params: UrlBuilderParams): string;

{
"name": "@bytescale/sdk",
"version": "1.3.0",
"version": "1.4.0",
"description": "Bytescale JavaScript SDK",

@@ -5,0 +5,0 @@ "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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