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

@gondel/plugin-hot

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gondel/plugin-hot - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

0

dist/index.d.ts

@@ -0,0 +0,0 @@ /**

4

dist/index.js
/**
* Add hot module replacement
*/
import { findComponents, addGondelPluginEventListener } from "@gondel/core";
import { findComponents, addGondelPluginEventListener } from '@gondel/core';
var hotModeActivated = false;

@@ -16,3 +16,3 @@ /**

hotModeActivated = true;
addGondelPluginEventListener("Hot", "register", function (registerComponent, _a, next) {
addGondelPluginEventListener('Hot', 'register', function (registerComponent, _a, next) {
var componentName = _a.componentName, namespace = _a.namespace;

@@ -19,0 +19,0 @@ findComponents(document.documentElement, undefined, namespace)

{
"name": "@gondel/plugin-hot",
"version": "1.2.6",
"version": "1.2.7",
"description": "Hot module reloading for Gondel component development",
"bugs": "https://github.com/namics/gondel/issues",
"homepage": "https://github.com/namics/gondel",
"repository": "https://github.com/namics/gondel.git",
"bugs": "https://github.com/merkle-open/gondel/issues",
"homepage": "https://github.com/merkle-open/gondel",
"repository": "https://github.com/merkle-open/gondel.git",
"main": "./dist/index.js",

@@ -26,11 +26,11 @@ "module": "./dist/index.js",

"devDependencies": {
"@gondel/core": "^1.2.6",
"@types/webpack-env": "1.15.2",
"@gondel/core": "^1.2.7",
"@types/webpack-env": "1.16.0",
"npm-run-all": "4.1.5",
"react": "16.13.1",
"react-dom": "16.13.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"rimraf": "3.0.2",
"typescript": "3.9.5"
"typescript": "4.2.4"
},
"gitHead": "c311a027df02b754d5f43e7d14cad7c721524dcb"
"gitHead": "5b8501214310055ab61c837a2ba2a2cf9a8a6df5"
}

@@ -0,0 +0,0 @@ # Hot Loader

@@ -5,3 +5,3 @@ /**

import { findComponents, addGondelPluginEventListener } from "@gondel/core";
import { findComponents, addGondelPluginEventListener } from '@gondel/core';

@@ -14,21 +14,21 @@ let hotModeActivated = false;

export function hot(module: __WebpackModuleApi.Module | NodeModule) {
if (module.hot) {
module.hot.accept();
if (hotModeActivated) {
return;
}
hotModeActivated = true;
addGondelPluginEventListener("Hot", "register", function (
registerComponent,
{ componentName, namespace },
next
) {
findComponents(document.documentElement, undefined, namespace)
.filter((oldComponent) => oldComponent._componentName === componentName)
.forEach((oldComponent) => {
(oldComponent as any).__proto__ = registerComponent.prototype;
});
next(registerComponent);
});
}
if (module.hot) {
module.hot.accept();
if (hotModeActivated) {
return;
}
hotModeActivated = true;
addGondelPluginEventListener(
'Hot',
'register',
function (registerComponent, { componentName, namespace }, next) {
findComponents(document.documentElement, undefined, namespace)
.filter((oldComponent) => oldComponent._componentName === componentName)
.forEach((oldComponent) => {
(oldComponent as any).__proto__ = registerComponent.prototype;
});
next(registerComponent);
}
);
}
}

Sorry, the diff of this file is not supported yet

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