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

@salesforcedevs/dw-components

Package Overview
Dependencies
Maintainers
13
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/dw-components - npm Package Compare versions

Comparing version 1.3.309 to 1.3.311

4

package.json
{
"name": "@salesforcedevs/dw-components",
"version": "1.3.309",
"version": "1.3.311",
"description": "Lightning web components for https://developer.salesforce.com",

@@ -29,3 +29,3 @@ "license": "MIT",

},
"gitHead": "7c8593290d3ce2df09137b939e9e58f64fe4f95b"
"gitHead": "8fd492d08f22c6ce74ebed62b3c35772f6c6075f"
}

@@ -9,3 +9,2 @@ import qs from "query-string";

import altData from "./altData.js";
import { normalizePostLink } from "../languageSelector/languageSelector";

@@ -20,2 +19,14 @@ let postsController: AbortController | null = null;

export const normalizePostLink = (post: {
acf: { language: string };
link: string;
}) => {
switch (post.acf.language) {
case "japanese":
return post.link.replace("/blogs/", "/jpblogs/");
default:
return post.link;
}
};
async function postsFetchHandler(url: string) {

@@ -22,0 +33,0 @@ if (postsController) {

import { track as trackClick } from "dxUtils/analytics";
import { api, LightningElement, track } from "lwc";
import { SelectOption } from "typings/custom";
import { normalizePostLink } from "../contentArchive/utils";

@@ -15,14 +16,2 @@ const ANALYTICS_INFO = {

export const normalizePostLink = (post: {
acf: { language: string };
link: string;
}) => {
switch (post.acf.language) {
case "japanese":
return post.link.replace("/blogs/", "/jpblogs/");
default:
return post.link;
}
};
export default class LanguageSelector extends LightningElement {

@@ -29,0 +18,0 @@ @track languages = [] as SelectOption[];

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