🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

setset

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

setset - npm Package Compare versions

Comparing version

to
0.0.4

4

dist/manager.d.ts

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

import { InferDataFromInput, MetadataState } from '.';
import { InferDataFromInput, MetadataNamespace } from '.';
import { FixupInfo } from './settings';

@@ -12,3 +12,3 @@ import { Spec, UserInput } from './static';

original(): Data;
metadata: MetadataState<Data>;
metadata: MetadataNamespace<Data>;
data: Data;

@@ -15,0 +15,0 @@ };

@@ -7,13 +7,13 @@ import type { Options } from './manager';

*/
declare type MetadataValueFromType = 'change' | 'initial';
export declare type MetadataValueFromType = 'change' | 'initial';
/**
*
*/
export declare type MetadataState<Data> = {
export declare type MetadataNamespace<Data = any> = {
type: 'namespace';
fields: {
[Key in keyof Data]: IsRecord<Data[Key]> extends true ? MetadataRecord<MetadataState<Lookup<Data[Key], string>>> : Data[Key] extends PlainObject ? MetadataNamespace<Data[Key]> : MetadataLeaf<Data[Key]>;
[Key in keyof Data]: IsRecord<Data[Key]> extends true ? MetadataRecord<MetadataNamespace<Lookup<Data[Key], string>>> : Data[Key] extends PlainObject ? MetadataNamespace<Data[Key]> : MetadataLeaf<Data[Key]>;
};
};
declare type MetadataLeaf<V = any> = {
export declare type MetadataLeaf<V = any> = {
type: 'leaf';

@@ -30,6 +30,2 @@ value: V;

};
declare type MetadataNamespace<V = Metadata> = {
type: 'namespace';
fields: Record<string, V>;
};
declare type Metadata<V = any> = MetadataLeaf<V> | MetadataRecord<V> | MetadataNamespace<V>;

@@ -36,0 +32,0 @@ export declare type FixupInfo = {

@@ -7,3 +7,3 @@ /**

import { ExcludeUndefined, IncludesPlainObjectOrInterface, IncludesRecord, IsEqual, IsRecord, KeepOptionalKeys, KeepRequiredKeys, Lookup, OnlyPlainObjectOrInterface, PlainObject } from './utils';
declare type BaseContext = {
declare type BaseMapContext = {
path: string[];

@@ -45,6 +45,6 @@ };

declare type OnlyShorthand<T> = UnwrapSyntheticLeaf<ExcludeUndefined<Exclude<T, OnlyNamespace<T>>>>;
export declare type NamespaceSpec<Input, Data, LocalContext> = {
export declare type NamespaceSpec<Input, Data, LocalMapContext> = {
fields: NamespaceFields<ExcludeShorthand<Input>, Data>;
} & (Data extends NO_DATA_MATCH ? {} : IsNamespaceInputEqualData<Input, Data> extends true ? {} : {
map(normalizedInput: NormalizeNamespaceInput<Input, ExcludeUndefined<Data>>, context: BaseContext & LocalContext): GetNamespaceDataWhereDivergingFromInput<Input, Data>;
map(normalizedInput: NormalizeNamespaceInput<Input, ExcludeUndefined<Data>>, context: BaseMapContext & LocalMapContext): GetNamespaceDataWhereDivergingFromInput<Input, Data>;
}) &

@@ -51,0 +51,0 @@ /**

{
"name": "setset",
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/index.js",
"repository": "git@github.com:prisma-labs/project-lib-typescript.git",
"author": "Prisma Labs Team",
"author": "Jason Kuhrt",
"license": "MIT",

@@ -8,0 +8,0 @@ "files": [

@@ -11,2 +11,3 @@ # setset

- [Installation](#installation)
- [Overview](#overview)

@@ -46,2 +47,8 @@ - [Guide](#guide)

## Installation
```
npm add setset
```
## Overview

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