New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@salesforcedevs/dw-components

Package Overview
Dependencies
Maintainers
0
Versions
311
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

to
1.7.0

4

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

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

},
"gitHead": "0d9112639aecfd377beb40705f2df5b123d61e7d"
"gitHead": "80c604385be4144f9e8325d9dd5a66c9ddeb5247"
}

@@ -21,2 +21,3 @@ import { LightningElement, api, track } from "lwc";

const SIGN_UP_FORM_TIMEOUT_MS = 18.5 * 1000; // Something in trialforce/DRM's backend (still under investigation) is causing requests to timeout around 20 seconds; we use 18.5 here in case it's sometimes a little faster than that
const SANCTIONED_COUNTRY_EMAILS = [".ir", ".cu", ".sy", ".kp", ".by", ".ru"];

@@ -164,2 +165,14 @@ export default class DeSignupForm extends LightningElement {

if (
SANCTIONED_COUNTRY_EMAILS.some((emailEnding) => {
return formData.user.email.endsWith(emailEnding);
})
) {
// pretend to submit for 2 seconds, and then redirect
this.setSubmitButtonDisabled(true);
window.setTimeout(() => {
window.location.href = "https://www.salesforce.com/closed/";
}, 2000);
}
// Due to Heroku's non-configurable 30 second request timeout, the POST request that

@@ -166,0 +179,0 @@ // submits the form can "fail" even though org creation is actually succeeding (but