price-extractor 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  [![Npm Version](https://img.shields.io/npm/v/price-extractor.svg?style=popout)](https://www.npmjs.com/package/price-extractor)
2
- ![node](https://img.shields.io/node/v-lts/price-extractor)
3
- [![Build Status](https://travis-ci.org/PruvoNet/price-extractor.svg?branch=master)](https://travis-ci.org/PruvoNet/price-extractor)
4
- [![Test Coverage](https://api.codeclimate.com/v1/badges/64f26f52c548c8d1e010/test_coverage)](https://codeclimate.com/github/PruvoNet/price-extractor/test_coverage)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/64f26f52c548c8d1e010/maintainability)](https://codeclimate.com/github/PruvoNet/price-extractor/maintainability)
2
+ [![node](https://img.shields.io/node/v-lts/price-extractor)](https://www.npmjs.com/package/price-extractor)
3
+ [![Build status](https://github.com/PruvoNet/price-extractor/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/PruvoNet/price-extractor/actions/workflows/ci.yml)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/83a4b9446725afb8f6ef/test_coverage)](https://codeclimate.com/github/PruvoNet/price-extractor/test_coverage)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/83a4b9446725afb8f6ef/maintainability)](https://codeclimate.com/github/PruvoNet/price-extractor/maintainability)
6
6
  [![Known Vulnerabilities](https://snyk.io/test/github/PruvoNet/price-extractor/badge.svg?targetFile=package.json)](https://snyk.io/test/github/PruvoNet/price-extractor?targetFile=package.json)
7
- [![dependencies Status](https://david-dm.org/PruvoNet/price-extractor/status.svg)](https://david-dm.org/PruvoNet/price-extractor)
8
- [![devDependencies Status](https://david-dm.org/PruvoNet/price-extractor/dev-status.svg)](https://david-dm.org/PruvoNet/price-extractor?type=dev)
9
7
 
10
8
  # price-extractor
11
9
 
package/dist/index.d.ts CHANGED
@@ -8,6 +8,6 @@ export interface IExtractResult {
8
8
  price?: number;
9
9
  }
10
10
  export declare const getCodeToSymbol: () => Json;
11
- export declare const searchCode: (moneyStr: string, fallbackCode?: string | undefined) => string | undefined;
12
- export declare const searchPriceAndCode: (moneyStr: string, fallbackCode?: string | undefined) => IExtractResult;
11
+ export declare const searchCode: (moneyStr: string, fallbackCode?: string) => string | undefined;
12
+ export declare const searchPriceAndCode: (moneyStr: string, fallbackCode?: string) => IExtractResult;
13
13
  export {};
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "price-extractor",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Given a price string, extract the price and currency code",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "engines": {
8
- "node": "^6 || ^8 || ^10 || ^12 || ^14 || ^15"
8
+ "node": "^6 || ^8 || ^10 || ^12 || ^14 || ^16 || ^18 || ^20 || ^22 || ^24"
9
9
  },
10
10
  "scripts": {
11
11
  "test": "npm run lint && npm run test:cover",
12
12
  "test:unit": "mocha --opts src/test/mocha.opts",
13
13
  "build": "npm run lint && npm run compile",
14
14
  "compile": "./node_modules/.bin/tsc",
15
- "test:cover": "nyc --reporter=lcov --reporter=text-summary npm run test:unit",
15
+ "test:cover": "nyc --reporter=lcov --reporter=text-summary mocha --opts src/test/mocha.opts",
16
16
  "lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'"
17
17
  },
18
18
  "repository": {
@@ -37,18 +37,18 @@
37
37
  "homepage": "https://github.com/PruvoNet/price-extractor#readme",
38
38
  "dependencies": {},
39
39
  "devDependencies": {
40
- "@istanbuljs/nyc-config-typescript": "^1.0.1",
40
+ "@istanbuljs/nyc-config-typescript": "0.1.3",
41
41
  "@types/chai": "^4.2.15",
42
42
  "@types/mocha": "^8.2.1",
43
43
  "@types/node": "^14.14.34",
44
44
  "@types/underscore": "^1.11.0",
45
45
  "chai": "^4.3.4",
46
46
  "mocha": "^6.2.3",
47
- "nyc": "^15.1.0",
48
- "source-map-support": "^0.5.19",
49
- "ts-node": "^9.1.1",
47
+ "nyc": "^14.1.1",
48
+ "source-map-support": "^0.5.21",
49
+ "ts-node": "^8.10.2",
50
50
  "tslint": "^6.1.3",
51
- "typescript": "^4.2.3",
52
- "underscore": "^1.12.0"
51
+ "typescript": "^4.8.4",
52
+ "underscore": "^1.13.6"
53
53
  }
54
54
  }