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

dallas

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dallas - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

5

index.js

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

import React, { memo, createElement } from 'react'
import { createElement } from 'react'

@@ -156,5 +156,2 @@ const E = Symbol('exclude')

// forward react exports
export * from 'react'
export const wrapper = options => {

@@ -161,0 +158,0 @@ const { baseClassName, ...opts } = prepareOptions(options)

2

package.json
{
"name": "dallas",
"version": "4.0.0",
"version": "4.0.1",
"description": "A wrapper for applying classes",

@@ -5,0 +5,0 @@ "type": "module",

import { deepStrictEqual as test } from 'assert'
import { classeNoMemo, wrapper } from './index.js'
import { classe, wrapper } from './index.js'

@@ -21,3 +21,3 @@ // data

const applyDallas = (options, props) =>
classeNoMemo(options, pass)(Object.freeze(props))
classe(options, pass)(Object.freeze(props))

@@ -163,8 +163,8 @@ /* APPLY CLASSNAME */

console.log('it should use keep component name')
test(classeNoMemo({}, pass).displayName, 'pass')
test(classe({}, pass).displayName, 'pass')
console.log('default name should be Div')
test(classeNoMemo({}).displayName, 'Div')
test(classe({}).displayName, 'Div')
console.log('we can specify another name')
test(classeNoMemo({}, pass, 'Hey').displayName, 'Hey')
test(classe({}, pass, 'Hey').displayName, 'Hey')
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