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

metro-info

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-info - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

19

CHANGELOG.md

@@ -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";

@@ -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>;
import { PlatformLocations } from './platform.locations.model';
export declare function getPlatformLocations(): Promise<PlatformLocations>;
import { ElementCompact } from 'xml-js';
import { PlatformLocations } from './platform.locations.model';
export declare function mapToPlatformLocations(locationJson: ElementCompact): PlatformLocations;

@@ -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";

27

package.json
{
"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

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