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

mismatch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mismatch - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

build/index.js.map

7

build/index.js

@@ -26,3 +26,3 @@ /**

*/
function mismatch(re, string, keys) {
function mismatch(re, string, keys) {
/** @type {Object.<string, string>[]} */

@@ -34,3 +34,3 @@ const m = []

const key = keys[i]
if (!(key && capturedGroup)) return acc
if (!(key && capturedGroup !== undefined)) return acc
acc[key] = capturedGroup

@@ -44,2 +44,3 @@ return acc

module.exports = mismatch
module.exports = mismatch
//# sourceMappingURL=index.js.map

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

## 17 September 2018
### 1.0.3
- [fix] Make sure that empty strings are also returned as part of the object.
## 15 August 2018

@@ -2,0 +8,0 @@

{
"name": "mismatch",
"version": "1.0.2",
"version": "1.0.3",
"description": "A JavaScript package to return captured groups of a regular expression as an object.",
"main": "build",
"scripts": {
"t": "zoroaster -b",
"test": "zoroaster -b test/spec",
"test-build": "BABEL_ENV=test-build yarn test",
"test-all": "yarn-s test test-build",
"test-watch": "yarn test -w",
"t": "zoroaster -a",
"test": "yarn t test/spec",
"test-build": "ALAMODE_ENV=test-build yarn test",
"lint": "eslint .",

@@ -47,8 +45,8 @@ "doc": "NODE_DEBUG=doc doc documentary -o README.md",

"devDependencies": {
"alamode": "1.1.0",
"documentary": "1.10.0",
"alamode": "1.5.0",
"documentary": "1.16.1",
"eslint-config-artdeco": "1.0.1",
"yarn-s": "1.1.0",
"zoroaster": "2.1.0"
"zoroaster": "3.3.0"
}
}

@@ -11,2 +11,4 @@ # mismatch

<p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/0.svg?sanitize=true"></a></p>
## Table Of Contents

@@ -17,3 +19,7 @@

* [`mismatch(re: RegExp, string: string, keys: string[])`](#mismatchre-regexpstring-stringkeys-string-void)
- [TODO](#todo)
- [Copyright](#copyright)
<p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/1.svg?sanitize=true"></a></p>
## API

@@ -92,6 +98,14 @@

---
<p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/2.svg?sanitize=true"></a></p>
## TODO
- [ ] Add an item to the todo list.
## Copyright
(c) [Art Deco][1] 2018
[1]: https://artdeco.bz
<p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/-1.svg?sanitize=true"></a></p>
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