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

@cartridge/presets

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cartridge/presets - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

8

dist/generated/controller-configs.d.ts

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

import { ControllerConfigs } from "../";
export declare const configs: ControllerConfigs;
import { ControllerConfigs } from '../index.js';
import '@starknet-io/types-js';
declare const configs: ControllerConfigs;
export { configs };

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

import { EkuboERC20Metadata } from "../";
export declare const metadata: EkuboERC20Metadata[];
import { EkuboERC20Metadata } from '../index.js';
import '@starknet-io/types-js';
declare const metadata: EkuboERC20Metadata[];
export { metadata };

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

import { TypedData } from "@starknet-io/types-js";
export declare const controllerConfigs: ControllerConfigs;
export declare const erc20Metadata: EkuboERC20Metadata[];
export declare const defaultTheme: ControllerTheme;
export type EkuboERC20Metadata = {
import { TypedData } from '@starknet-io/types-js';
declare const controllerConfigs: ControllerConfigs;
declare const erc20Metadata: EkuboERC20Metadata[];
declare const defaultTheme: ControllerTheme;
type EkuboERC20Metadata = {
name: string;

@@ -16,4 +17,4 @@ symbol: string;

};
export type Policy = CallPolicy | TypedDataPolicy;
export type CallPolicy = {
type Policy = CallPolicy | TypedDataPolicy;
type CallPolicy = {
target: string;

@@ -23,5 +24,5 @@ method: string;

};
export type TypedDataPolicy = Omit<TypedData, "message">;
export type Policies = Policy[] | SessionPolicies;
export type SessionPolicies = {
type TypedDataPolicy = Omit<TypedData, "message">;
type Policies = Policy[] | SessionPolicies;
type SessionPolicies = {
/** The key must be the contract address */

@@ -31,8 +32,8 @@ contracts?: ContractPolicies;

};
export type ContractPolicies = Record<string, ContractPolicy>;
export type ContractPolicy = {
type ContractPolicies = Record<string, ContractPolicy>;
type ContractPolicy = {
methods: Method[];
description?: string;
};
export type Method = {
type Method = {
name?: string;

@@ -42,7 +43,7 @@ entrypoint: string;

};
export type SignMessagePolicy = TypedDataPolicy & {
type SignMessagePolicy = TypedDataPolicy & {
name: string;
description?: string;
};
export type ControllerConfig = {
type ControllerConfig = {
origin: string | string[];

@@ -52,5 +53,5 @@ policies?: SessionPolicies;

};
export type ControllerConfigs = Record<string, ControllerConfig>;
export type ColorMode = "light" | "dark";
export type ControllerTheme = {
type ControllerConfigs = Record<string, ControllerConfig>;
type ColorMode = "light" | "dark";
type ControllerTheme = {
name: string;

@@ -61,10 +62,12 @@ icon: string;

};
export type ControllerColors = {
type ControllerColors = {
primary?: ControllerColor;
primaryForeground?: ControllerColor;
};
export type ControllerColor = ThemeValue<string>;
export type ThemeValue<T> = T | {
type ControllerColor = ThemeValue<string>;
type ThemeValue<T> = T | {
dark: T;
light: T;
};
export { type CallPolicy, type ColorMode, type ContractPolicies, type ContractPolicy, type ControllerColor, type ControllerColors, type ControllerConfig, type ControllerConfigs, type ControllerTheme, type EkuboERC20Metadata, type Method, type Policies, type Policy, type SessionPolicies, type SignMessagePolicy, type ThemeValue, type TypedDataPolicy, controllerConfigs, defaultTheme, erc20Metadata };
{
"name": "@cartridge/presets",
"version": "0.5.2",
"version": "0.5.3",
"description": "Cartridge Presets",

@@ -11,2 +11,13 @@ "module": "dist/index.js",

},
"tsup": {
"entry": [
"src/**"
],
"format": [
"esm"
],
"splitting": false,
"sourcemap": true,
"clean": true
},
"files": [

@@ -22,3 +33,3 @@ "dist"

"typescript": "^5.4.5",
"@cartridge/tsconfig": "0.5.2"
"@cartridge/tsconfig": "0.5.3"
},

@@ -28,2 +39,3 @@ "scripts": {

"build:deps": "pnpm build:configs && tsc",
"build": "tsup --dts-resolve",
"fetch:erc20": "tsx scripts/fetch-erc20.ts && prettier --write src/generated/erc20-metadata.ts",

@@ -30,0 +42,0 @@ "format": "prettier --write \"src/**/*.ts\"",

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