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

getstream

Package Overview
Dependencies
Maintainers
10
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getstream - npm Package Compare versions

Comparing version 7.2.11 to 7.3.0

3

lib/client.d.ts

@@ -23,5 +23,2 @@ /// <reference path="../types/modules.d.ts" />

};
export declare type RefreshUrlAPIResponse = APIResponse & {
url: string;
};
export declare type OnUploadProgress = (progressEvent: ProgressEvent) => void;

@@ -28,0 +25,0 @@ export declare type ClientOptions = {

/// <reference types="node" />
import { StreamClient, OnUploadProgress, RefreshUrlAPIResponse } from './client';
import { StreamClient, OnUploadProgress } from './client';
export declare class StreamFileStore {

@@ -23,10 +23,3 @@ client: StreamClient;

delete(uri: string): Promise<import("./client").APIResponse>;
/**
* Explicitly refresh CDN urls for uploaded files on the Stream CDN (only needed for files on the Stream CDN).
* Note that Stream CDN is not enabled by default, if in doubt please contact us.
* @param {string} uri full uploaded file url that needs to be refreshed
* @return {Promise<RefreshUrlAPIResponse>}
*/
refreshUrl(uri: string): Promise<RefreshUrlAPIResponse>;
}
//# sourceMappingURL=files.d.ts.map

@@ -59,20 +59,2 @@ "use strict";

}
/**
* Explicitly refresh CDN urls for uploaded files on the Stream CDN (only needed for files on the Stream CDN).
* Note that Stream CDN is not enabled by default, if in doubt please contact us.
* @param {string} uri full uploaded file url that needs to be refreshed
* @return {Promise<RefreshUrlAPIResponse>}
*/
}, {
key: "refreshUrl",
value: function refreshUrl(uri) {
return this.client.post({
url: 'files/refresh/',
body: {
url: uri
},
token: this.token
});
}
}]);

@@ -79,0 +61,0 @@ return StreamFileStore;

/// <reference types="node" />
import { StreamClient, FileUploadAPIResponse, OnUploadProgress, RefreshUrlAPIResponse } from './client';
import { StreamClient, FileUploadAPIResponse, OnUploadProgress } from './client';
export declare type ImageProcessOptions = {

@@ -30,9 +30,2 @@ crop?: string | 'top' | 'bottom' | 'left' | 'right' | 'center';

/**
* Explicitly refresh CDN urls for uploaded images on the Stream CDN (only needed for files on the Stream CDN).
* Note that Stream CDN is not enabled by default, if in doubt please contact us.
* @param {string} uri full uploaded image url that needs to be refreshed
* @return {Promise<RefreshUrlAPIResponse>}
*/
refreshUrl(uri: string): Promise<RefreshUrlAPIResponse>;
/**
* Generate a diffrent variant of the uploaded image

@@ -39,0 +32,0 @@ * @link https://getstream.io/activity-feeds/docs/node/files_introduction/?language=js#image_processing

@@ -62,20 +62,2 @@ "use strict";

/**
* Explicitly refresh CDN urls for uploaded images on the Stream CDN (only needed for files on the Stream CDN).
* Note that Stream CDN is not enabled by default, if in doubt please contact us.
* @param {string} uri full uploaded image url that needs to be refreshed
* @return {Promise<RefreshUrlAPIResponse>}
*/
}, {
key: "refreshUrl",
value: function refreshUrl(uri) {
return this.client.post({
url: 'images/refresh/',
body: {
url: uri
},
token: this.token
});
}
/**
* Generate a diffrent variant of the uploaded image

@@ -82,0 +64,0 @@ * @link https://getstream.io/activity-feeds/docs/node/files_introduction/?language=js#image_processing

1

lib/reaction.d.ts

@@ -46,2 +46,3 @@ import { StreamClient, APIResponse, UR } from './client';

with_activity_data?: boolean;
with_own_children?: boolean;
};

@@ -48,0 +49,0 @@ export declare type ReactionUpdateOptions = {

@@ -14,3 +14,3 @@ {

"license": "BSD-3-Clause",
"version": "7.2.11",
"version": "7.3.0",
"scripts": {

@@ -17,0 +17,0 @@ "transpile": "babel src --out-dir lib --extensions '.ts'",

@@ -42,4 +42,2 @@ /// <reference path="../types/modules.d.ts" />

export type RefreshUrlAPIResponse = APIResponse & { url: string };
export type OnUploadProgress = (progressEvent: ProgressEvent) => void;

@@ -46,0 +44,0 @@

@@ -1,2 +0,2 @@

import { StreamClient, OnUploadProgress, RefreshUrlAPIResponse } from './client';
import { StreamClient, OnUploadProgress } from './client';

@@ -44,16 +44,2 @@ export class StreamFileStore {

}
/**
* Explicitly refresh CDN urls for uploaded files on the Stream CDN (only needed for files on the Stream CDN).
* Note that Stream CDN is not enabled by default, if in doubt please contact us.
* @param {string} uri full uploaded file url that needs to be refreshed
* @return {Promise<RefreshUrlAPIResponse>}
*/
refreshUrl(uri: string) {
return this.client.post<RefreshUrlAPIResponse>({
url: 'files/refresh/',
body: { url: uri },
token: this.token,
});
}
}

@@ -1,2 +0,2 @@

import { StreamClient, FileUploadAPIResponse, OnUploadProgress, RefreshUrlAPIResponse } from './client';
import { StreamClient, FileUploadAPIResponse, OnUploadProgress } from './client';

@@ -54,16 +54,2 @@ export type ImageProcessOptions = {

/**
* Explicitly refresh CDN urls for uploaded images on the Stream CDN (only needed for files on the Stream CDN).
* Note that Stream CDN is not enabled by default, if in doubt please contact us.
* @param {string} uri full uploaded image url that needs to be refreshed
* @return {Promise<RefreshUrlAPIResponse>}
*/
refreshUrl(uri: string) {
return this.client.post<RefreshUrlAPIResponse>({
url: 'images/refresh/',
body: { url: uri },
token: this.token,
});
}
/**
* Generate a diffrent variant of the uploaded image

@@ -70,0 +56,0 @@ * @link https://getstream.io/activity-feeds/docs/node/files_introduction/?language=js#image_processing

@@ -80,2 +80,3 @@ import { StreamClient, APIResponse, UR } from './client';

with_activity_data?: boolean;
with_own_children?: boolean;
};

@@ -82,0 +83,0 @@

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 not supported yet

Sorry, the diff of this file is not supported yet

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