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

@lwrjs/client-modules

Package Overview
Dependencies
Maintainers
0
Versions
498
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwrjs/client-modules - npm Package Compare versions

Comparing version 0.17.2-alpha.9 to 0.17.2-alpha.10

2

build/bundle/prod/lwr/servicesESM/servicesESM.js

@@ -1,2 +0,2 @@

const e=[];let o;const n=globalThis.LWR;n.define||n.env?globalThis.LWR=Object.freeze({define:n.define,env:n.env}):delete globalThis.LWR;const t={addLoaderPlugin:()=>{console.warn("API is not supported in ESM format")},handleStaleModule:function(n){e.push(n),o||(o=new WebSocket(`ws://${location.host}`),o.addEventListener("message",(async({data:o})=>{const n=JSON.parse(o);if("moduleUpdate"===n.eventType){const{oldHash:o,newHash:t,module:{specifier:a}}=n.payload;for(let n=0;n<e.length;n++){if(null!==(0,e[n])({name:a,oldHash:o,newHash:t}))break}}})))},appMetadata:function(){const{appId:e,bootstrapModule:o,rootComponent:t,rootComponents:a}=n;return{appId:e,bootstrapModule:o,rootComponent:t,rootComponents:a}}(),addServerDataCallback:function(e){}};export{t as services};
const e=[];let o;const n=globalThis,t=n.LWR;t.define||t.env?n.LWR=Object.freeze({define:t.define,env:t.env}):delete n.LWR;const a={addLoaderPlugin:()=>{console.warn("API is not supported in ESM format")},handleStaleModule:function(n){e.push(n),o||(o=new WebSocket(`ws://${location.host}`),o.addEventListener("message",(async o=>{const n=o.data,t=JSON.parse(n);if("moduleUpdate"===t.eventType){const{oldHash:o,newHash:n,module:{specifier:a}}=t.payload;for(let t=0;t<e.length;t++){if(null!==(0,e[t])({name:a,oldHash:o,newHash:n}))break}}})))},appMetadata:function(){const{appId:e,bootstrapModule:o,rootComponent:n,rootComponents:a}=t;return{appId:e,bootstrapModule:o,rootComponent:n,rootComponents:a}}(),addServerDataCallback:function(e){}};export{a as services};
//# sourceMappingURL=servicesESM.js.map

@@ -6,6 +6,7 @@ /**

const lwrGlobals = globalThis.LWR;
const GLOBAL = globalThis;
const lwrGlobals = GLOBAL.LWR;
if (lwrGlobals.define || lwrGlobals.env) {
// AMD only
globalThis.LWR = Object.freeze({
GLOBAL.LWR = Object.freeze({
define: lwrGlobals.define,

@@ -15,3 +16,3 @@ env: lwrGlobals.env

} else {
delete globalThis.LWR;
delete GLOBAL.LWR;
}

@@ -18,0 +19,0 @@ export function getClientBootstrapConfig() {

@@ -7,5 +7,4 @@ const handleStaleModuleHooks = [];

socket = new WebSocket(`ws://${location.host}`);
socket.addEventListener('message', async ({
data
}) => {
socket.addEventListener('message', async payload => {
const data = payload.data;
const event = JSON.parse(data);

@@ -12,0 +11,0 @@ if (event.eventType === 'moduleUpdate') {

import { registerHandleStaleModuleHook } from './handleStaleModuleESM';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { getClientBootstrapConfig } from 'lwr/preInit';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { registerServerDataCallbacks } from 'lwr/serverDataCallback';

@@ -4,0 +8,0 @@ const noop = () => {

@@ -7,3 +7,3 @@ {

},
"version": "0.17.2-alpha.9",
"version": "0.17.2-alpha.10",
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",

@@ -38,6 +38,6 @@ "repository": {

"@locker/sandbox": "0.23.6",
"@lwrjs/shared-utils": "0.17.2-alpha.9"
"@lwrjs/shared-utils": "0.17.2-alpha.10"
},
"devDependencies": {
"@lwrjs/types": "0.17.2-alpha.9",
"@lwrjs/types": "0.17.2-alpha.10",
"@rollup/plugin-node-resolve": "^15.2.3",

@@ -75,3 +75,3 @@ "@rollup/plugin-sucrase": "^5.0.2",

},
"gitHead": "7ede5d04a97513b9869b13e66155bc4f3920bb99"
"gitHead": "3938f97f31973d7953bb61cff8388c71980c22c7"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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