Socket
Socket
Sign inDemoInstall

@emotion/is-prop-valid

Package Overview
Dependencies
1
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.6-next.0 to 0.9.0-next.1

6

CHANGELOG.md
# @emotion/is-prop-valid
## 0.9.0-next.1
### Minor Changes
- [`923ded01`](https://github.com/emotion-js/emotion/commit/923ded01e2399a242206d590f6646f13aba110e4) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@JakeGinnivan](https://github.com/JakeGinnivan)! - Allow `isPropValid` to take any `PropertyKey` as an argument (instead of just `string`).
## 0.8.6-next.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@emotion/is-prop-valid",
"version": "0.8.6-next.0",
"version": "0.9.0-next.1",
"description": "A function to check whether a prop is valid for HTML and SVG elements",

@@ -5,0 +5,0 @@ "main": "dist/is-prop-valid.cjs.js",

// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
// TypeScript Version: 2.1
declare function isPropValid(string: string): boolean
declare function isPropValid(string: PropertyKey): boolean
export default isPropValid

@@ -8,6 +8,4 @@ import isPropValid from '@emotion/is-prop-valid'

// $ExpectError
isPropValid(5)
// $ExpectError
isPropValid({})
// $ExpectError
isPropValid('ref', 'def')
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc