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

obj-str

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obj-str - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

index.d.ts

2

dist/obj-str.min.js

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

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=function(n){var e,o="";for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}:"function"==typeof define&&define.amd?define(e):n.objstr=function(n){var e,o="";for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}}(this,function(){return function(n){var e,o="";for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=function(n){var e,o="";for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}:"function"==typeof define&&define.amd?define(e):n.objstr=function(n){var e,o="";for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}}(this,(function(){return function(n){var e,o="";for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}}));
{
"name": "obj-str",
"version": "1.0.3",
"version": "1.1.0",
"repository": "lukeed/obj-str",

@@ -9,2 +9,3 @@ "description": "A tiny library for serializing Object values to Strings.",

"main": "dist/obj-str.js",
"types": "index.d.ts",
"umd:name": "objstr",

@@ -15,3 +16,3 @@ "license": "MIT",

"email": "luke.edwards05@gmail.com",
"url": "lukeed.com"
"url": "https://lukeed.com"
},

@@ -23,6 +24,6 @@ "engines": {

"build": "bundt",
"pretest": "npm run build",
"test": "tape test/*.js | tap-spec"
"test": "uvu -r esm -i fixtures test"
},
"files": [
"*.d.ts",
"dist"

@@ -43,6 +44,7 @@ ],

"devDependencies": {
"bundt": "^0.1.1",
"tap-spec": "^4.1.1",
"tape": "^4.6.3"
"@babel/core": "7.12.17",
"bundt": "1.1.2",
"esm": "3.2.25",
"uvu": "0.5.1"
}
}

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

# obj-str [![Build Status](https://travis-ci.org/lukeed/obj-str.svg?branch=master)](https://travis-ci.org/lukeed/obj-str)
# obj-str [![CI](https://github.com/lukeed/obj-str/workflows/CI/badge.svg)](https://github.com/lukeed/obj-str/actions) [![codecov](https://badgen.net/codecov/c/github/lukeed/obj-str)](https://codecov.io/gh/lukeed/obj-str)

@@ -34,3 +34,3 @@ > A tiny (96B) library for serializing Object values to Strings.

const TodoItem = ({ text, isDone, disabled }) => (
<li className={ objstr({ item:true, completed:isDone, disabled }) }>
<li className={ objstr({ item:true, completed:isDone, disabled }) }>
<input type="checkbox" disabled={ disabled } checked={ isDone } />

@@ -80,2 +80,4 @@ <label>{ text }</label>

- [babel-plugin-optimize-obj-str](./babel-plugin-optimize-obj-str) - Babel plugin to transform `obj-str` calls into optimized expressions.
- [clsx](https://github.com/lukeed/clsx) - Drop-in replacement for `obj-str` and `classnames` – handles all (and multiple) input types.

@@ -82,0 +84,0 @@

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