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

onno

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onno - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

8

cjs/index.js

@@ -62,2 +62,7 @@ "use strict"

}
function merge(array, initial = {}) {
return array.reduce((acc, val) => {
return isArray(val) ? merge(val, initial) : Object.assign(acc, val)
}, initial)
}

@@ -105,5 +110,2 @@ const KEYS = ["propsKeys", "styleKeys", "themeKeys"]

function merge(styles) {
return styles.reduce((o, s) => Object.assign(o, s), {})
}
function interpolate(options) {

@@ -110,0 +112,0 @@ let { name, renderers } = options

@@ -58,2 +58,7 @@ const PX_SCALE = [0, 2, 4, 8, 16, 32, 64, 128, 256, 512]

}
function merge(array, initial = {}) {
return array.reduce((acc, val) => {
return isArray(val) ? merge(val, initial) : Object.assign(acc, val)
}, initial)
}

@@ -101,5 +106,2 @@ const KEYS = ["propsKeys", "styleKeys", "themeKeys"]

function merge(styles) {
return styles.reduce((o, s) => Object.assign(o, s), {})
}
function interpolate(options) {

@@ -106,0 +108,0 @@ let { name, renderers } = options

{
"name": "onno",
"license": "MIT",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "https://onnojs.com",

@@ -33,3 +33,3 @@ "description": "Responsive style props for building themed design systems",

},
"gitHead": "29c8a0cb54ab74ad59cf4e2284f72fe97ef4d526"
"gitHead": "c1c97a224a30ea71b2d6ae8a78a05d68ebf41c3a"
}
import * as T from "./types"
export declare function merge<S extends T.Style>(
styles: T.StyleArray<S>
): T.StyleObject<S>
export declare function interpolate<P extends T.ThemeProps, S extends T.Style>(
options: T.InterpolateOptions
): T.StyleTransformFunction<P, S>

@@ -8,2 +8,3 @@ export declare type Length = number

export declare type Pred = (...args: any[]) => boolean
export interface NestedArray<T> extends Array<T | NestedArray<T>> {}
export declare type ResponsivePropArray<T> = T[]

@@ -10,0 +11,0 @@ export interface ResponsivePropObject<T> {

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

import { Func, Pred } from "./types"
import { Func, Pred, NestedArray } from "./types"
export declare const push: (...items: any[]) => number

@@ -23,1 +23,5 @@ export declare const isArray: (arg: any) => arg is any[]

export declare function resolve(paths?: any[], lookup?: any): any
export declare function merge<T extends {}>(
array: NestedArray<T>,
initial?: T
): T
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