metro-info
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -8,8 +8,22 @@ # Changelog | ||
## [1.0.2] - 2019-01-26 | ||
## [1.0.3] - 2019-03-19 | ||
### Changed | ||
- Moved Jest typings to dev dependencies. | ||
- Repository had a strange tag clash. Bumping for clean new version. | ||
## [1.0.2] - 2019-03-19 | ||
### Added | ||
- Coveralls support. | ||
- Jest code coverage generation. | ||
- Coverage npm script for travis-ci. | ||
- Improved test coverage for alertMapper. | ||
### Changed | ||
- Improved order of operations with npm scripts. | ||
- Improved travis-ci configuration. | ||
## [1.0.1] - 2019-01-26 | ||
@@ -37,3 +51,4 @@ | ||
[unreleased]: https://github.com/Codex-/metro-info/compare/v1.0.2...HEAD | ||
[1.0.2]: https://github.com/Codex-/metro-info/compare/v1.0.2...v1.0.3 | ||
[1.0.2]: https://github.com/Codex-/metro-info/compare/v1.0.1...v1.0.2 | ||
[1.0.1]: https://github.com/Codex-/metro-info/compare/v1.0.0...v1.0.1 |
export * from './alert.model'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=alert.js.map |
import { ElementCompact } from 'xml-js'; | ||
import { Alert } from './alert.model'; | ||
export declare function mapToAlert(alertJson: ElementCompact): Alert; |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
@@ -20,2 +20,4 @@ "use strict"; | ||
expect(alert.detail).toEqual(singleAlertJson.Detail._text); | ||
expect(alert.routes.length).toBe(1); | ||
expect(alert.routes[0].number).toBe(singleAlertJson.Route.$.RouteNo); | ||
expect(alert.title).toEqual(singleAlertJson.$.Title); | ||
@@ -22,0 +24,0 @@ expect(alert.validFrom).toBeInstanceOf(Date); |
@@ -0,0 +0,0 @@ export interface Alert { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=alert.model.js.map |
import { ElementCompact } from 'xml-js'; | ||
export declare function fetchXmlAsJson(uri: string): Promise<ElementCompact>; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare const API_URL: string; | ||
export declare const API_TIMES = "JPRoutePositionET2"; | ||
export declare const API_LOCATIONS = "JPPlatform"; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './content.model'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=content.js.map |
import { ElementCompact } from 'xml-js'; | ||
import { Content } from './content.model'; | ||
export declare function mapToContent(contentJson: ElementCompact): Content; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface Content { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=content.model.js.map |
@@ -0,0 +0,0 @@ export declare enum Direction { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './alert/alert'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface PlatformHeader { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=platform.header.model.js.map |
import { ElementCompact } from 'xml-js'; | ||
export declare function fetchPlatformLocationsAsJson(): Promise<ElementCompact>; |
@@ -0,0 +0,0 @@ "use strict"; |
import { PlatformLocations } from './platform.locations.model'; | ||
export declare function getPlatformLocations(): Promise<PlatformLocations>; |
@@ -0,0 +0,0 @@ "use strict"; |
import { ElementCompact } from 'xml-js'; | ||
import { PlatformLocations } from './platform.locations.model'; | ||
export declare function mapToPlatformLocations(locationJson: ElementCompact): PlatformLocations; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Content } from '../../content/content.model'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=platform.locations.model.js.map |
@@ -0,0 +0,0 @@ export * from './locations/platform.locations.getter'; |
@@ -0,0 +0,0 @@ "use strict"; |
import { ElementCompact } from 'xml-js'; | ||
export declare function fetchPlatformTimesAsJson(platformNumber: number): Promise<ElementCompact>; |
@@ -0,0 +0,0 @@ "use strict"; |
import { PlatformTimes } from './platform.times.model'; | ||
export declare function getPlatformTimes(platformNumber: number): Promise<PlatformTimes>; |
@@ -0,0 +0,0 @@ "use strict"; |
import { ElementCompact } from 'xml-js'; | ||
import { PlatformTimes } from './platform.times.model'; | ||
export declare function mapToPlatformTimes(positionJson: ElementCompact): PlatformTimes; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Alert } from '../../alert/alert.model'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=platform.times.model.js.map |
export * from './point.model'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=point.js.map |
import { ElementCompact } from 'xml-js'; | ||
import { Point } from './point.model'; | ||
export declare function mapToPoint(pointJson: ElementCompact): Point; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface Point { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=point.model.js.map |
export declare function propertyToArray(property: any): any[]; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "metro-info", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Christchurch (Unofficial) MetroInfo API NodeJS library", | ||
@@ -10,6 +10,7 @@ "main": "dist/index.js", | ||
"clean": "rimraf ./dist", | ||
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls", | ||
"format": "prettier --write \"lib/**/*.{ts,js}\"", | ||
"lint": "tslint -p tsconfig.json", | ||
"postversion": "git push && git push --tags", | ||
"prebuild": "npm run clean && npm run lint && npm run format", | ||
"prebuild": "npm run clean && npm run format && npm run lint", | ||
"prepare": "npm run build", | ||
@@ -45,19 +46,20 @@ "prepublishOnly": "npm run lint && npm run format", | ||
"dependencies": { | ||
"@types/jest": "^24.0.11", | ||
"@types/request-promise-native": "^1.0.15", | ||
"request": "^2.88.0", | ||
"request-promise-native": "^1.0.5", | ||
"xml-js": "^1.6.9" | ||
"request-promise-native": "^1.0.7", | ||
"xml-js": "^1.6.11" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^23.3.13", | ||
"coveralls": "*", | ||
"husky": "^1.3.1", | ||
"jest": "^23.6.0", | ||
"lint-staged": "^8.1.0", | ||
"prettier": "^1.16.0", | ||
"jest": "^24.5.0", | ||
"lint-staged": "^8.1.5", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^2.6.3", | ||
"ts-jest": "^23.10.5", | ||
"tslint": "^5.12.1", | ||
"tslint-config-prettier": "^1.17.0", | ||
"ts-jest": "^24.0.0", | ||
"tslint": "^5.14.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typescript": "^3.2.4" | ||
"typescript": "^3.3.3333" | ||
}, | ||
@@ -81,2 +83,3 @@ "husky": { | ||
"jest": { | ||
"collectCoverage": true, | ||
"transform": { | ||
@@ -83,0 +86,0 @@ "^.+\\.ts$": "ts-jest" |
# metro-info | ||
![Build Status](https://img.shields.io/travis/Codex-/metro-info.svg?style=flat-square) | ||
[![Build Status](https://img.shields.io/travis/Codex-/metro-info.svg?style=flat-square)](https://travis-ci.org/Codex-/metro-info) | ||
[![Code Coverage Status](https://img.shields.io/coveralls/github/Codex-/metro-info.svg?style=flat-square)](https://coveralls.io/github/Codex-/metro-info) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
@@ -5,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42915
573
49
5
+ Added@types/jest@^24.0.11
+ Added@jest/types@24.9.0(transitive)
+ Added@types/istanbul-lib-coverage@2.0.6(transitive)
+ Added@types/istanbul-lib-report@3.0.3(transitive)
+ Added@types/istanbul-reports@1.1.2(transitive)
+ Added@types/jest@24.9.1(transitive)
+ Added@types/yargs@13.0.12(transitive)
+ Added@types/yargs-parser@21.0.3(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addeddiff-sequences@24.9.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedjest-diff@24.9.0(transitive)
+ Addedjest-get-type@24.9.0(transitive)
+ Addedpretty-format@24.9.0(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
Updatedxml-js@^1.6.11