UNPKG

@difizen/mana-syringe

Version:

14 lines (13 loc) 809 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isInversifyContext = isInversifyContext; exports.isInversifyRegister = isInversifyRegister; function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function isInversifyContext(data) { return data && _typeof(data) === 'object' && 'container' in data && isInversifyRegister(data['container']); } function isInversifyRegister(data) { return data && _typeof(data) === 'object' && 'bind' in data && 'unbind' in data && 'rebind' in data && 'isBound' in data; }