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

forgo

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forgo - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

2

dist/index.d.ts

@@ -52,3 +52,3 @@ export declare type ForgoRef<T> = {

export declare function setCustomEnv(value: any): void;
export declare function mount(forgoNode: ForgoNode, parentElement: HTMLElement | null): void;
export declare function mount(forgoNode: ForgoNode, container: HTMLElement | string | null): void;
export declare function render(forgoNode: ForgoNode): {

@@ -55,0 +55,0 @@ node: ChildNode;

@@ -17,2 +17,3 @@ "use strict";

};
const isString = (val) => typeof val === 'string';
function setCustomEnv(value) {

@@ -477,3 +478,4 @@ env = value;

*/
function mount(forgoNode, parentElement) {
function mount(forgoNode, container) {
let parentElement = isString(container) ? env.document.querySelector(container) : container;
if (parentElement) {

@@ -480,0 +482,0 @@ const { node } = internalRender(forgoNode, undefined, [], true);

{
"name": "forgo",
"version": "0.0.25",
"version": "0.0.26",
"main": "./dist",

@@ -5,0 +5,0 @@ "author": "Jeswin Kumar<jeswinpk@agilehead.com>",

@@ -63,2 +63,10 @@ # forgo

You could also pass a selector instead of an element.
```js
window.addEventListener("load", () => {
mount(<SimpleTimer />, "#root");
});
```
## Child Components and Passing Props

@@ -65,0 +73,0 @@

@@ -141,2 +141,4 @@ /*

const isString = (val: unknown): val is string => typeof val === 'string'
export function setCustomEnv(value: any) {

@@ -830,3 +832,5 @@ env = value;

*/
export function mount(forgoNode: ForgoNode, parentElement: HTMLElement | null) {
export function mount(forgoNode: ForgoNode, container: HTMLElement | string | null) {
let parentElement = isString(container) ? env.document.querySelector(container) : container;
if (parentElement) {

@@ -833,0 +837,0 @@ const { node } = internalRender(forgoNode, undefined, [], true);

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