metro-info
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -8,2 +8,9 @@ # Changelog | ||
## [1.0.8] - 2021-04-09 | ||
### Changed | ||
- Bumped packages. Now building with TypeScript 4.2.4. | ||
- cicd changed to support node 14, drop node 10 as deprecated. | ||
## [1.0.7] - 2019-06-23 | ||
@@ -88,3 +95,4 @@ | ||
[unreleased]: https://github.com/Codex-/metro-info/compare/v1.0.7...HEAD | ||
[unreleased]: https://github.com/Codex-/metro-info/compare/v1.0.8...HEAD | ||
[1.0.7]: https://github.com/Codex-/metro-info/compare/v1.0.7...v1.0.8 | ||
[1.0.7]: https://github.com/Codex-/metro-info/compare/v1.0.6...v1.0.7 | ||
@@ -91,0 +99,0 @@ [1.0.6]: https://github.com/Codex-/metro-info/compare/v1.0.5...v1.0.6 |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./alert.model"), exports); | ||
//# sourceMappingURL=alert.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapToAlert = void 0; | ||
var utils_1 = require("../utils"); | ||
@@ -4,0 +5,0 @@ function mapToAlert(alertJson) { |
@@ -39,2 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fetchXmlAsJson = void 0; | ||
var xml_js_1 = require("xml-js"); | ||
@@ -41,0 +42,0 @@ if (typeof global.fetch === 'undefined' && |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.API_LOCATIONS = exports.API_TIMES = exports.API_URL = void 0; | ||
var API_URL_BASE = 'http://rtt.metroinfo.org.nz/rtt/public/utility/'; | ||
@@ -4,0 +5,0 @@ var API_URL_GET = 'file.aspx?ContentType=SQLXML&Name='; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./content.model"), exports); | ||
//# sourceMappingURL=content.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapToContent = void 0; | ||
function mapToContent(contentJson) { | ||
@@ -4,0 +5,0 @@ return { |
@@ -10,2 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Schedule = exports.Direction = void 0; | ||
/** | ||
@@ -12,0 +13,0 @@ * Perceived direction from the start to the end of the route pattern. |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./platform/platform")); | ||
__exportStar(require("./alert/alert"), exports); | ||
__exportStar(require("./content/content"), exports); | ||
__exportStar(require("./platform/platform"), exports); | ||
__exportStar(require("./point/point"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -39,2 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fetchPlatformLocationsAsJson = void 0; | ||
var api_1 = require("../../api"); | ||
@@ -41,0 +42,0 @@ var constants_1 = require("../../constants"); |
@@ -39,2 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPlatformLocations = void 0; | ||
var platform_locations_api_1 = require("./platform.locations.api"); | ||
@@ -41,0 +42,0 @@ var platform_locations_mapper_1 = require("./platform.locations.mapper"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapToPlatformLocations = void 0; | ||
var constants_1 = require("../../constants"); | ||
@@ -4,0 +5,0 @@ var content_mapper_1 = require("../../content/content.mapper"); |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./locations/platform.locations.getter")); | ||
__export(require("./times/platform.times.getter")); | ||
__exportStar(require("./locations/platform.locations.getter"), exports); | ||
__exportStar(require("./locations/platform.locations.model"), exports); | ||
__exportStar(require("./times/platform.times.getter"), exports); | ||
__exportStar(require("./times/platform.times.model"), exports); | ||
//# sourceMappingURL=platform.js.map |
@@ -39,2 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fetchPlatformTimesAsJson = void 0; | ||
var api_1 = require("../../api"); | ||
@@ -41,0 +42,0 @@ var constants_1 = require("../../constants"); |
@@ -39,2 +39,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPlatformTimes = void 0; | ||
var platform_times_api_1 = require("./platform.times.api"); | ||
@@ -41,0 +42,0 @@ var platform_times_mapper_1 = require("./platform.times.mapper"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapToPlatformTimes = void 0; | ||
var alert_mapper_1 = require("../../alert/alert.mapper"); | ||
@@ -4,0 +5,0 @@ var constants_1 = require("../../constants"); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./point.model"), exports); | ||
//# sourceMappingURL=point.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapToPoint = void 0; | ||
function mapToPoint(pointJson) { | ||
@@ -4,0 +5,0 @@ return { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.propertyToArray = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Support function to check if the property is an object or array of objects. |
{ | ||
"name": "metro-info", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Christchurch (Unofficial) MetroInfo API NodeJS library", | ||
@@ -46,18 +46,18 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"node-fetch": "^2.6.0", | ||
"node-fetch": "^2.6.1", | ||
"xml-js": "^1.6.11" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^25.1.4", | ||
"@types/node-fetch": "^2.5.5", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"lint-staged": "^10.0.8", | ||
"prettier": "^1.19.1", | ||
"@types/jest": "^26.0.22", | ||
"@types/node-fetch": "^2.5.10", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^10.5.4", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^25.2.1", | ||
"tslint": "^6.1.0", | ||
"ts-jest": "^26.5.4", | ||
"tslint": "^6.1.3", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typescript": "^3.8.3" | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -64,0 +64,0 @@ "husky": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
88999
1239
Updatednode-fetch@^2.6.1