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

@streamlayer/feature-gamification

Package Overview
Dependencies
Maintainers
0
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streamlayer/feature-gamification - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

7

lib/advertisement/index.js

@@ -31,2 +31,5 @@ import { createMapStore, eventBus } from '@streamlayer/sdk-web-interfaces';

// }
const adHasBanner = (data) => (data?.promotion?.type === PromotionType.INGAME_IAB11_LBAR ||
data?.promotion?.type === PromotionType.INGAME_IAB21_LBAR) &&
!!data.promotion.additionalBanner?.imageUrl;
/**

@@ -62,2 +65,3 @@ * @name Advertisement

type,
hasBanner: adHasBanner(payload.data),
},

@@ -81,2 +85,3 @@ });

type,
hasBanner: adHasBanner(payload.data),
},

@@ -139,2 +144,3 @@ });

hasNotification: !!active.hasNotification,
hasBanner: adHasBanner(active.data),
isViewed: !!storage.isViewed(active.data.question.id),

@@ -152,2 +158,3 @@ },

hasNotification: !!prevActive.hasNotification,
hasBanner: adHasBanner(prevActive.data),
isViewed: !!storage.isViewed(prevActive.data.question.id),

@@ -154,0 +161,0 @@ },

16

package.json
{
"name": "@streamlayer/feature-gamification",
"version": "1.10.1",
"version": "1.11.0",
"peerDependencies": {

@@ -9,9 +9,9 @@ "@bufbuild/protobuf": "^1.10.0",

"nanostores": "^0.10.3",
"@streamlayer/sdk-web-api": "^1.6.10",
"@streamlayer/sdk-web-core": "^1.7.2",
"@streamlayer/sdk-web-interfaces": "^1.2.10",
"@streamlayer/sdk-web-logger": "^1.0.31",
"@streamlayer/sdk-web-notifications": "^1.2.10",
"@streamlayer/sdk-web-storage": "^1.0.31",
"@streamlayer/sdk-web-types": "^1.8.4"
"@streamlayer/sdk-web-api": "^1.6.11",
"@streamlayer/sdk-web-core": "^1.8.0",
"@streamlayer/sdk-web-interfaces": "^1.3.0",
"@streamlayer/sdk-web-logger": "^1.0.32",
"@streamlayer/sdk-web-notifications": "^1.2.11",
"@streamlayer/sdk-web-storage": "^1.0.32",
"@streamlayer/sdk-web-types": "^1.8.5"
},

@@ -18,0 +18,0 @@ "devDependencies": {

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