🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@tylertech/forge-core

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tylertech/forge-core - npm Package Compare versions

Comparing version
3.1.0
to
3.2.0
+5
-0
dist/custom-elements/component-utils.d.ts

@@ -18,2 +18,7 @@ /**

/**
* Checks to see if the custom element is defined in the registry.
* @param name The name of the custom element to query the registry with.
*/
export declare function hasDefinedCustomElement(name: string): boolean;
/**
* Useful when capturing the value of a unupgraded component during the `connectedCallback` upon upgrade.

@@ -20,0 +25,0 @@ *

+8
-1

@@ -26,3 +26,3 @@ import { replaceElement, isArray, removeAllChildren, walkUpUntil } from '../utils';

export function tryDefine(name, ctor, options) {
if (window?.customElements?.get(name)) {
if (hasDefinedCustomElement(name)) {
return;

@@ -33,2 +33,9 @@ }

/**
* Checks to see if the custom element is defined in the registry.
* @param name The name of the custom element to query the registry with.
*/
export function hasDefinedCustomElement(name) {
return window?.customElements?.get(name) !== undefined;
}
/**
* Useful when capturing the value of a unupgraded component during the `connectedCallback` upon upgrade.

@@ -35,0 +42,0 @@ *

@@ -6,2 +6,3 @@ export class Subject {

constructor(value) {
// eslint-disable-next-line @tylertech-eslint/require-private-modifier
this.subscribers = [];

@@ -8,0 +9,0 @@ this.source = value;

+19
-19
{
"name": "@tylertech/forge-core",
"version": "3.1.0",
"version": "3.2.0",
"description": "A library of core web utilities that support Tyler Forge™ based libraries.",

@@ -27,24 +27,24 @@ "author": "Tyler Technologies, Inc.",

"dependencies": {
"tslib": "^2.6.3"
"tslib": "^2.8.1"
},
"devDependencies": {
"@auto-it/conventional-commits": "^11.1.6",
"@auto-it/first-time-contributor": "^11.1.6",
"@auto-it/npm": "^11.1.6",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@auto-it/conventional-commits": "^11.3.0",
"@auto-it/first-time-contributor": "^11.3.0",
"@auto-it/npm": "^11.3.0",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@tylertech-eslint/eslint-plugin": "^1.0.12",
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.2",
"@types/sinon": "^17.0.3",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.2",
"auto": "^11.1.6",
"commitlint": "^19.3.0",
"@tylertech-eslint/eslint-plugin": "^2.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^22.15.21",
"@types/sinon": "^17.0.4",
"@web/dev-server-esbuild": "^1.0.4",
"@web/test-runner": "^0.20.2",
"auto": "^11.3.0",
"commitlint": "^19.8.1",
"http-server": "^14.1.1",
"husky": "^9.0.11",
"rimraf": "^5.0.7",
"sinon": "^18.0.0",
"typescript": "~5.4.5"
"husky": "^9.1.7",
"rimraf": "^6.0.1",
"sinon": "^20.0.0",
"typescript": "~5.8.3"
},

@@ -51,0 +51,0 @@ "overrides": {