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

cassiopeia

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cassiopeia - npm Package Compare versions

Comparing version 3.2.0 to 4.0.0

lib/types/cache-iterators.d.ts

1

lib/types/constants.d.ts
export declare const REGEX: RegExp;
export declare const STORE: unique symbol;
export declare const SOURCE: unique symbol;
//# sourceMappingURL=constants.d.ts.map

@@ -1,7 +0,7 @@

import { REGEX, SOURCE, STORE } from './constants';
import { Cassiopeia, CassiopeiaInstance, Deregister, Iterator, Iterators, Options, Plugin, Register, Source, Store, StyleSheet, StyleSheetPartial, Subscription, TypeState, Unsubscribe, Variables } from './types';
import { REGEX, STORE } from './constants';
import { Cassiopeia, CassiopeiaInstance, Iterator, Iterators, Options, Plugin, Store, StyleSheet, StyleSheetPartial, Subscription, Unsubscribe, UpdatePlugin, UpdateSource, Variables } from './types';
export declare function createCassiopeia(options: Options): Cassiopeia;
export declare const renderToString: <T extends CassiopeiaInstance>(cassiopeia: T) => StyleSheet[] | undefined;
export { TypeState, REGEX, STORE, SOURCE };
export type { Cassiopeia, Deregister, Iterator, Iterators, Options, Plugin, CassiopeiaInstance, Register, Source, Store, StyleSheet, StyleSheetPartial, Subscription, Unsubscribe, Variables };
export declare const renderToString: <T extends CassiopeiaInstance>(cassiopeia: T) => StyleSheet[];
export { REGEX, STORE };
export type { Cassiopeia, Iterator, Iterators, Options, Plugin, CassiopeiaInstance, Store, StyleSheet, StyleSheetPartial, UpdateSource, UpdatePlugin, Subscription, Unsubscribe, Variables };
//# sourceMappingURL=index.d.ts.map

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

import { SOURCE, STORE } from './constants';
import { STORE } from './constants';
export declare const enum TypeAction {
UpdatePlugin = 0,
UpdateSource = 1
}
export declare const enum TypeState {
Locked = 0,
None = 1,
Scheduled = 2,
Running = 3
}
export interface StyleSheetPartial {

@@ -12,15 +22,3 @@ content: string;

export type Iterators = Map<string, () => Iterator>;
export type Register = (update: (isAsync?: boolean) => void) => void;
export type Deregister = () => void;
export interface Plugin {
plugin: (iterators: Iterators) => {
register: Register;
deregister: Deregister;
};
}
export interface Options {
source?: Source;
plugins: Plugin[];
}
export type Matcher = Generator<undefined, StyleSheet[], true | undefined>;
export type Cache = Set<[string, string, string]>;
export type Variables = Generator<[

@@ -31,24 +29,31 @@ string,

], void, true | undefined>;
export declare enum TypeState {
Inactive = 0,
Activating = 1,
Active = 2
export type MatcherReturn = undefined | StyleSheet[];
export type Matcher = Generator<undefined, MatcherReturn, true | undefined>;
export type UpdatePlugin = (isAsync?: boolean) => Promise<boolean>;
export type UpdateSource = (createVariables: (() => Variables) | undefined, isAsync?: boolean) => Promise<boolean>;
export interface Plugin {
plugin: (iterators: Iterators, update: UpdatePlugin) => void;
}
export type VariablesCache = Set<[string, string, string]>;
export declare const enum TypeUpdate {
Locked = 0,
None = 1,
Scheduled = 2,
Running = 3
export interface Options {
plugins: Plugin[];
}
export interface ActionUpdatePlugin {
type: TypeAction.UpdatePlugin;
isAsync: boolean;
}
export interface ActionUpdateSource {
type: TypeAction.UpdateSource;
createVariables?: () => Variables;
isAsync: boolean;
}
export type Action = ActionUpdatePlugin | ActionUpdateSource;
export type Unsubscribe = () => void;
export type Subscription = (stylesheets: StyleSheet[]) => void;
export type Update = (createVariables: (() => Variables) | undefined, isAsync?: boolean) => void;
export interface Store {
cache: VariablesCache;
log: Action[];
cache: Cache;
iterators: Iterators;
matcher?: Matcher;
subscriptions: Set<Subscription>;
state: TypeState;
subscriptions: Set<Subscription>;
update: TypeUpdate;
}

@@ -60,13 +65,4 @@ export interface CassiopeiaInstance {

subscribe: (subscription: Subscription) => Unsubscribe;
start: () => void;
stop: () => void;
update: Update;
isActive: () => boolean;
update: UpdateSource;
}
export type Source = (store: Store, update: Update) => {
[SOURCE]: {
start: () => void;
stop?: () => void;
};
};
//# sourceMappingURL=types.d.ts.map
{
"name": "cassiopeia",
"description": "",
"version": "3.2.0",
"version": "4.0.0",
"author": "escapace <opensource@escapace.com>",

@@ -10,3 +10,3 @@ "bugs": "https://github.com/escapace/cassiopeia/issues",

"@types/mocha": "10.0.1",
"@types/node": "18.14.0",
"@types/node": "18.14.1",
"@typescript-eslint/eslint-plugin": "5.53.0",

@@ -13,0 +13,0 @@ "@typescript-eslint/parser": "5.53.0",

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