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

@aurelia/runtime

Package Overview
Dependencies
Maintainers
1
Versions
1113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/runtime - npm Package Compare versions

Comparing version 2.1.0-dev.202401310648 to 2.1.0-dev.202402270447

6

dist/types/observation/dirty-checker.d.ts

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

import { IContainer, IPlatform } from '@aurelia/kernel';
import { IContainer } from '@aurelia/kernel';
import { type AccessorType, type IObserver, type ISubscriberCollection, type IObservable, type ISubscriber } from '../observation';

@@ -36,6 +36,6 @@ import type { IIndexable } from '@aurelia/kernel';

export declare class DirtyChecker {
private readonly p;
static register(c: IContainer): void;
private readonly tracked;
constructor(p: IPlatform);
private readonly p;
constructor();
createProperty(obj: object, key: PropertyKey): DirtyCheckProperty;

@@ -42,0 +42,0 @@ addProperty(property: DirtyCheckProperty): void;

import { ComputedGetterFn } from './computed-observer';
import { IDirtyChecker } from './dirty-checker';
import { PropertyAccessor } from './property-accessor';

@@ -29,3 +28,2 @@ import type { Collection, IAccessor, ICollectionObserver, IObserver, AccessorOrObserver, CollectionObserver } from '../observation';

export declare class ObserverLocator {
constructor(dirtyChecker: IDirtyChecker, nodeObserverLocator: INodeObserverLocator);
addAdapter(adapter: IObjectObservationAdapter): void;

@@ -32,0 +30,0 @@ getObserver(obj: unknown, key: PropertyKey): IObserver;

{
"name": "@aurelia/runtime",
"version": "2.1.0-dev.202401310648",
"version": "2.1.0-dev.202402270447",
"main": "dist/cjs/index.cjs",

@@ -56,5 +56,5 @@ "module": "dist/esm/index.mjs",

"dependencies": {
"@aurelia/kernel": "2.1.0-dev.202401310648",
"@aurelia/metadata": "2.1.0-dev.202401310648",
"@aurelia/platform": "2.1.0-dev.202401310648"
"@aurelia/kernel": "2.1.0-dev.202402270447",
"@aurelia/metadata": "2.1.0-dev.202402270447",
"@aurelia/platform": "2.1.0-dev.202402270447"
},

@@ -61,0 +61,0 @@ "devDependencies": {

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

import { IContainer, IPlatform, Registration } from '@aurelia/kernel';
import { IContainer, IPlatform, Registration, resolve } from '@aurelia/kernel';
import { type AccessorType, type IObserver, type ISubscriberCollection, type IObservable, type ISubscriber, atNone } from '../observation';

@@ -51,6 +51,2 @@ import { subscriberCollection } from './subscriber-collection';

export class DirtyChecker {
/**
* @internal
*/
public static inject = [IPlatform];
public static register(c: IContainer) {

@@ -69,4 +65,4 @@ c.register(

private readonly p = resolve(IPlatform);
public constructor(
private readonly p: IPlatform,
) {

@@ -73,0 +69,0 @@ subscriberCollection(DirtyCheckProperty);

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

import { Primitive, isArrayIndex, ILogger } from '@aurelia/kernel';
import { Primitive, isArrayIndex, ILogger, resolve } from '@aurelia/kernel';
import { getArrayObserver } from './array-observer';

@@ -70,15 +70,6 @@ import { ComputedGetterFn, ComputedObserver } from './computed-observer';

export class ObserverLocator {
/** @internal */ protected static readonly inject = [IDirtyChecker, INodeObserverLocator];
/** @internal */ private readonly _adapters: IObjectObservationAdapter[] = [];
/** @internal */ private readonly _dirtyChecker: IDirtyChecker;
/** @internal */ private readonly _nodeObserverLocator: INodeObserverLocator;
/** @internal */ private readonly _dirtyChecker = resolve(IDirtyChecker);
/** @internal */ private readonly _nodeObserverLocator = resolve(INodeObserverLocator);
public constructor(
dirtyChecker: IDirtyChecker,
nodeObserverLocator: INodeObserverLocator,
) {
this._dirtyChecker = dirtyChecker;
this._nodeObserverLocator = nodeObserverLocator;
}
public addAdapter(adapter: IObjectObservationAdapter): void {

@@ -181,2 +172,3 @@ this._adapters.push(adapter);

// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
return obs == null

@@ -183,0 +175,0 @@ ? pd.configurable

@@ -108,3 +108,3 @@ import { ErrorNames, createMappedError } from '../errors';

}
return new Scope(null, bc as IBindingContext, oc == null ? new OverrideContext() : oc, isBoundary ?? false);
return new Scope(null, bc as IBindingContext, oc ?? new OverrideContext(), isBoundary ?? false);
}

@@ -111,0 +111,0 @@

@@ -22,9 +22,3 @@ import { createInterface, createLookup } from '../utilities';

public addSignalListener(name: string, listener: ISubscriber): void {
const signals = this.signals;
const listeners = signals[name];
if (listeners === undefined) {
signals[name] = new Set([listener]);
} else {
listeners.add(listener);
}
(this.signals[name] ??= new Set()).add(listener);
}

@@ -31,0 +25,0 @@

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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