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 8.2.0 to 8.3.0

5

lib/client.d.ts

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

replaceReactionOptions: (options: {
rankingVars?: Record<string, string | number>;
reactionKindsFilter?: string[];
reactions?: Record<string, boolean | string[]>;
reactions?: Record<string, boolean | string[] | Record<string, string | number>>;
withOwnChildren?: boolean;

@@ -278,2 +279,3 @@ withOwnReactions?: boolean;

withRecentReactions?: boolean;
withScoreVars?: boolean;
}) => void;

@@ -287,2 +289,3 @@ shouldUseEnrichEndpoint(options?: {

withRecentReactions?: boolean;
withScoreVars?: boolean;
}): boolean;

@@ -289,0 +292,0 @@ /**

8

lib/client.js

@@ -119,2 +119,8 @@ "use strict";

}
if (options.reactions.ranking_vars != null) {
options.rankingVars = options.reactions.ranking_vars;
}
if (options.reactions.score_vars != null) {
options.withScoreVars = options.reactions.score_vars;
}
if (options.reactions.counts != null) {

@@ -465,3 +471,3 @@ options.withReactionCounts = options.reactions.counts;

}
return this.enrichByDefault || options.ownReactions != null || options.reactionKindsFilter != null || options.withRecentReactions != null || options.withReactionCounts != null || options.withOwnChildren != null;
return this.enrichByDefault || options.ownReactions != null || options.reactionKindsFilter != null || options.withRecentReactions != null || options.withScoreVars != null || options.withReactionCounts != null || options.withOwnChildren != null;
}

@@ -468,0 +474,0 @@

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

ownReactions?: boolean;
rankingVars?: Record<string, string | number>;
reactionKindsFilter?: string[];

@@ -21,2 +22,3 @@ recentReactionsLimit?: number;

withRecentReactions?: boolean;
withScoreVars?: boolean;
};

@@ -314,2 +316,3 @@ export type FeedPaginationOptions = {

* @example feed.getActivityDetail(activityId, {withReactionCounts: true})
* @example feed.getActivityDetail(activityId, {withScoreVars: true})
* @example feed.getActivityDetail(activityId, {withOwnReactions: true, withReactionCounts: true})

@@ -316,0 +319,0 @@ */

@@ -315,2 +315,3 @@ "use strict";

* @example feed.getActivityDetail(activityId, {withReactionCounts: true})
* @example feed.getActivityDetail(activityId, {withScoreVars: true})
* @example feed.getActivityDetail(activityId, {withOwnReactions: true, withReactionCounts: true})

@@ -317,0 +318,0 @@ */

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

"license": "BSD-3-Clause",
"version": "8.2.0",
"version": "8.3.0",
"scripts": {

@@ -17,0 +17,0 @@ "changelog": "standard-version --release-as $VERSION --skip.tag --skip.commit --tag-prefix=v",

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

replaceReactionOptions = (options: {
rankingVars?: Record<string, string | number>;
reactionKindsFilter?: string[];
reactions?: Record<string, boolean | string[]>;
reactions?: Record<string, boolean | string[] | Record<string, string | number>>;
withOwnChildren?: boolean;

@@ -502,2 +503,3 @@ withOwnReactions?: boolean;

withRecentReactions?: boolean;
withScoreVars?: boolean;
}) => {

@@ -512,2 +514,8 @@ // Shortcut options for reaction enrichment

}
if (options.reactions.ranking_vars != null) {
options.rankingVars = options.reactions.ranking_vars as Record<string, string | number>;
}
if (options.reactions.score_vars != null) {
options.withScoreVars = options.reactions.score_vars as boolean;
}
if (options.reactions.counts != null) {

@@ -534,2 +542,3 @@ options.withReactionCounts = options.reactions.counts as boolean;

withRecentReactions?: boolean;
withScoreVars?: boolean;
} = {},

@@ -548,2 +557,3 @@ ) {

options.withRecentReactions != null ||
options.withScoreVars != null ||
options.withReactionCounts != null ||

@@ -550,0 +560,0 @@ options.withOwnChildren != null

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

ownReactions?: boolean; // best not to use it, will be removed by client.replaceReactionOptions()
rankingVars?: Record<string, string | number>;
reactionKindsFilter?: string[]; // TODO: add support for array sample: kind,kind,kind

@@ -26,2 +27,3 @@ recentReactionsLimit?: number;

withRecentReactions?: boolean;
withScoreVars?: boolean;
};

@@ -508,2 +510,3 @@

* @example feed.getActivityDetail(activityId, {withReactionCounts: true})
* @example feed.getActivityDetail(activityId, {withScoreVars: true})
* @example feed.getActivityDetail(activityId, {withOwnReactions: true, withReactionCounts: true})

@@ -510,0 +513,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

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