@rentspree/lightship
Advanced tools
Comparing version 0.1.0 to 0.1.2
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -8,3 +10,3 @@ | ||
}); | ||
exports["default"] = void 0; | ||
exports["default"] = exports.createLightship = void 0; | ||
@@ -15,3 +17,3 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
var _lightship = require("lightship"); | ||
var Lightship = _interopRequireWildcard(require("lightship")); | ||
@@ -22,2 +24,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
var createLightShipInstance = Lightship.createLightship; | ||
var DEFAULT_PORT = 13000; | ||
@@ -46,3 +49,3 @@ | ||
var lightship = (0, _lightship.createLightship)(_objectSpread({}, detectKubernetes && { | ||
var lightship = createLightShipInstance(_objectSpread({}, detectKubernetes && { | ||
detectKubernetes: detectKubernetes | ||
@@ -111,4 +114,6 @@ }, {}, port && { | ||
var createLightship = create; | ||
exports.createLightship = createLightship; | ||
var _default = create; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@rentspree/lightship", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"description": "liveness and readiness wrapper using lightship for node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,3 +0,5 @@ | ||
import { createLightship } from "lightship" | ||
import * as Lightship from "lightship" | ||
const { createLightship: createLightShipInstance } = Lightship | ||
const DEFAULT_PORT = 13000 | ||
@@ -22,3 +24,3 @@ | ||
} | ||
const lightship = createLightship({ | ||
const lightship = createLightShipInstance({ | ||
...(detectKubernetes && { detectKubernetes }), | ||
@@ -76,2 +78,4 @@ ...(port && { port }), | ||
export const createLightship = create | ||
export default create |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27465
458