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
36
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 2.1.0 to 3.0.0

2

lib/types/index.d.ts
import { REGEX, SOURCE, STORE } from './constants';
import { Cassiopeia, Deregister, Iterator, Iterators, Options, Plugin, Register, Source, Store, Subscription, TypeState, Unsubscribe, Variables } from './types';
export declare function cassiopeia(options: Options): Cassiopeia;
export declare const renderToString: (cassiopeia: Cassiopeia) => string | undefined;
export declare const renderToString: (cassiopeia: Cassiopeia) => import("./types").StyleSheet[] | undefined;
export { TypeState, REGEX, STORE, SOURCE };
export type { Cassiopeia, Deregister, Iterator, Iterators, Options, Plugin, Register, Source, Store, Subscription, Unsubscribe, Variables };
//# sourceMappingURL=index.d.ts.map
import { SOURCE, STORE } from './constants';
export type Iterator = Generator<undefined, string | undefined, string | true>;
export interface StyleSheetPartial {
content: string;
[key: string]: string | string[];
}
export interface StyleSheet extends StyleSheetPartial {
key: string;
content: string;
}
export type Iterator = Generator<undefined, StyleSheetPartial | StyleSheetPartial[] | undefined, string | true>;
export type Iterators = Map<string, () => Iterator>;
export type Register = (update: (isAsync?: boolean) => void) => void;
export type Deregister = () => void;
export type Plugin = (iterators: Iterators) => {
register: Register;
deregister: Deregister;
};
export interface Plugin {
plugin: (iterators: Iterators) => {
register: Register;
deregister: Deregister;
};
}
export interface Options {

@@ -14,3 +24,3 @@ source?: Source;

}
export type Matcher = Generator<undefined, string | undefined, true | undefined>;
export type Matcher = Generator<undefined, StyleSheet[], true | undefined>;
export type Variables = Generator<[

@@ -34,3 +44,3 @@ string,

export type Unsubscribe = () => void;
export type Subscription = (value: string) => void;
export type Subscription = (stylesheets: StyleSheet[]) => void;
export type Update = (createVariables: (() => Variables) | undefined, isAsync?: boolean) => void;

@@ -37,0 +47,0 @@ export interface Store {

{
"name": "cassiopeia",
"description": "",
"version": "2.1.0",
"version": "3.0.0",
"author": "escapace <opensource@escapace.com>",

@@ -13,5 +13,5 @@ "bugs": "https://github.com/escapace/cassiopeia/issues",

"@types/mocha": "10.0.1",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.50.0",
"@typescript-eslint/parser": "5.50.0",
"@types/node": "18.13.0",
"@typescript-eslint/eslint-plugin": "5.51.0",
"@typescript-eslint/parser": "5.51.0",
"arg": "5.0.2",

@@ -21,3 +21,3 @@ "c8": "7.12.0",

"changelogithub": "0.12.7",
"esbuild": "0.17.5",
"esbuild": "0.17.6",
"eslint": "8.33.0",

@@ -33,8 +33,8 @@ "eslint-config-escapace": "3.16.0",

"is-ci": "3.0.1",
"lint-staged": "13.1.0",
"lint-staged": "13.1.1",
"mocha": "10.2.0",
"prettier": "2.8.3",
"prettier": "2.8.4",
"prettier-config-escapace": "1.0.4",
"semver": "7.3.8",
"syncpack": "8.4.11",
"syncpack": "8.5.14",
"typescript": "4.9.5"

@@ -41,0 +41,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