abstract-parser
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -1,2 +0,2 @@ | ||
import filterObj from"filter-obj"; | ||
import{excludeKeys}from"filter-obj"; | ||
import isPlainObj from"is-plain-obj"; | ||
@@ -10,3 +10,3 @@ import{validate}from"jest-validate"; | ||
const optsA=filterObj(opts,isDefined); | ||
const optsA=excludeKeys(opts,isUndefined); | ||
const optsB={...DEFAULT_OPTS,...optsA}; | ||
@@ -29,4 +29,3 @@ | ||
export const DEFAULT_OPTS={ | ||
const DEFAULT_OPTS={ | ||
legacy:false, | ||
@@ -47,3 +46,3 @@ script:false, | ||
export const EXAMPLE_OPTS={ | ||
const EXAMPLE_OPTS={ | ||
...DEFAULT_OPTS, | ||
@@ -53,4 +52,4 @@ source:"filename.js"}; | ||
const isDefined=function(key,value){ | ||
return value!==undefined; | ||
const isUndefined=function(key,value){ | ||
return value===undefined; | ||
}; | ||
@@ -57,0 +56,0 @@ |
{ | ||
"name": "abstract-parser", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"type": "module", | ||
@@ -8,4 +8,3 @@ "exports": "./build/src/main.js", | ||
"files": [ | ||
"build/src/**/*.{js,ts,map,json,sh,md}", | ||
"examples/**/*.{js,ts,map,json,sh,md}" | ||
"build/src/**/*.{js,d.ts,json}" | ||
], | ||
@@ -18,3 +17,3 @@ "scripts": { | ||
"license": "Apache-2.0", | ||
"homepage": "https://git.io/fjMJP", | ||
"homepage": "https://www.github.com/ehmicky/abstract-parser", | ||
"repository": "ehmicky/abstract-parser", | ||
@@ -30,5 +29,5 @@ "bugs": { | ||
"dependencies": { | ||
"@babel/parser": "^7.17.9", | ||
"@typescript-eslint/typescript-estree": "^5.18.0", | ||
"acorn": "^8.7.0", | ||
"@babel/parser": "^7.18.9", | ||
"@typescript-eslint/typescript-estree": "^5.30.7", | ||
"acorn": "^8.8.0", | ||
"acorn-jsx": "^5.3.2", | ||
@@ -38,11 +37,11 @@ "acorn-stage3": "^4.0.0", | ||
"esprima": "^4.0.1", | ||
"filter-obj": "^3.0.0", | ||
"is-plain-obj": "^4.0.0", | ||
"jest-validate": "^27.5.1", | ||
"filter-obj": "^5.1.0", | ||
"is-plain-obj": "^4.1.0", | ||
"jest-validate": "^28.1.3", | ||
"meriyah": "^2.1.1", | ||
"moize": "^6.1.0", | ||
"typescript": "^4.6.3" | ||
"moize": "^6.1.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.72" | ||
"@ehmicky/dev-tasks": "^1.0.84" | ||
}, | ||
@@ -49,0 +48,0 @@ "engines": { |
[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/abstract-parser.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/abstract-parser) | ||
[![Build](https://github.com/ehmicky/abstract-parser/workflows/Build/badge.svg)](https://github.com/ehmicky/abstract-parser/actions) | ||
[![Node](https://img.shields.io/node/v/abstract-parser.svg?logo=node.js)](https://www.npmjs.com/package/abstract-parser) | ||
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky) | ||
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-brightgreen.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-brightgreen.svg?logo=medium)](https://medium.com/@ehmicky) | ||
@@ -7,0 +6,0 @@ Abstraction layer for JavaScript parsers. |
Sorry, the diff of this file is not supported yet
26144
19
35
+ Added@jest/schemas@28.1.3(transitive)
+ Added@jest/types@28.1.3(transitive)
+ Added@sinclair/typebox@0.24.51(transitive)
+ Added@types/yargs@17.0.33(transitive)
+ Addedfilter-obj@5.1.0(transitive)
+ Addedjest-get-type@28.0.2(transitive)
+ Addedjest-validate@28.1.3(transitive)
+ Addedpretty-format@28.1.3(transitive)
+ Addedreact-is@18.3.1(transitive)
- Removed@jest/types@27.5.1(transitive)
- Removed@types/yargs@16.0.9(transitive)
- Removedfilter-obj@3.0.0(transitive)
- Removedjest-get-type@27.5.1(transitive)
- Removedjest-validate@27.5.1(transitive)
- Removedpretty-format@27.5.1(transitive)
- Removedreact-is@17.0.2(transitive)
Updated@babel/parser@^7.18.9
Updatedacorn@^8.8.0
Updatedfilter-obj@^5.1.0
Updatedis-plain-obj@^4.1.0
Updatedjest-validate@^28.1.3
Updatedmoize@^6.1.1
Updatedtypescript@^4.7.4