UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

13 lines (11 loc) 593 B
import angular from 'angular'; // Improve errors/stack traces related to: // `Error: [ng:areq] Argument 'module' is not a function, got undefined` const realModule = angular.module; (angular as any).module = function (name: string, requires?: string[], configFn?: Function): angular.IModule { if (requires && requires.some((dep) => !dep)) { const deps = requires.map((r) => (typeof r === 'string' ? `'${r}'` : `${r}`)).join(', '); throw new Error(`Got falsey dependency whilst registering angular module '${name}': [${deps}]`); } return realModule(name, requires, configFn); };