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

@dpc-sdp/ripple-tide-api

Package Overview
Dependencies
Maintainers
6
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dpc-sdp/ripple-tide-api - npm Package Compare versions

Comparing version 2.1.0-alpha.69 to 2.1.0-alpha.73

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.1.0-alpha.73](https://github.com/dpc-sdp/ripple-framework/compare/v2.1.0-alpha.72...v2.1.0-alpha.73) (2023-02-05)
**Note:** Version bump only for package @dpc-sdp/ripple-tide-api
# [2.1.0-alpha.69](https://github.com/dpc-sdp/ripple-framework/compare/v2.1.0-alpha.68...v2.1.0-alpha.69) (2023-01-29)

@@ -8,0 +16,0 @@

@@ -33,2 +33,17 @@ import { map as topicTagsMapping, includes as topicTagsIncludes } from './topic-tags/topic-tags-mapping.js';

topicTags: topicTagsMapping,
siteSection: async (src, tidePageApi) => {
// The section/site id comes from the drupal 'route' api
const siteId = tidePageApi.sectionId;
// With the correct site/section id, we can now choose the correct site data from 'field_node_site'
const siteData = src.field_node_site.find((site) => {
return `${site.drupal_internal__tid}` === siteId;
});
if (!siteData) {
return null;
}
return {
id: siteData.drupal_internal__tid,
name: siteData.name
};
},
_src: (src) => (process.env.NODE_ENV === 'development' ? src : undefined)

@@ -35,0 +50,0 @@ };

4

package.json
{
"name": "@dpc-sdp/ripple-tide-api",
"version": "2.1.0-alpha.69",
"version": "2.1.0-alpha.73",
"description": "Ripple API endpoints for Tide Drupal backend",

@@ -58,3 +58,3 @@ "main": "./dist/index.js",

],
"gitHead": "316cd1cf44efbdff6a60e7f5fd00ef7e55f75150"
"gitHead": "60a143cac90e2c96426e31b80a7139f8ed2e6dbc"
}

@@ -25,2 +25,3 @@ import {

} from './sidebar-site-section-nav/sidebar-site-section-nav-mapping.js'
import { TidePageApi } from '../services'

@@ -65,2 +66,20 @@ export const tidePageBaseMapping = ({

topicTags: topicTagsMapping,
siteSection: async (src, tidePageApi: TidePageApi) => {
// The section/site id comes from the drupal 'route' api
const siteId = tidePageApi.sectionId
// With the correct site/section id, we can now choose the correct site data from 'field_node_site'
const siteData = src.field_node_site.find((site) => {
return `${site.drupal_internal__tid}` === siteId
})
if (!siteData) {
return null
}
return {
id: siteData.drupal_internal__tid,
name: siteData.name
}
},
_src: (src) => (process.env.NODE_ENV === 'development' ? src : undefined)

@@ -67,0 +86,0 @@ }

@@ -94,2 +94,3 @@ import type { NuxtProxyOptions as ModuleOptions } from 'nuxt-proxy'

topicTags: TideTopicTag[]
siteSection: TideSiteSection | null
sidebar: {

@@ -125,2 +126,7 @@ contacts?: TideContact[]

export type TideSiteSection = {
id: string
name: string
}
export interface RplTideModuleMappingConfig {

@@ -127,0 +133,0 @@ /**

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