Permalink
Browse files

Initial implementation of refactor to module pattern, still need to g…

…et karma to work and probably set up coverage reporting again.
  • Loading branch information...
1 parent 7b7bfc4 commit e72993b2cb4665509ab815400885ccc997986fcd @zakhenry zakhenry committed Apr 5, 2016
Showing with 1,967 additions and 15,647 deletions.
  1. +1 −0 .gitignore
  2. +0 −3 .yo-rc.json
  3. +0 −26 bower.json
  4. +1 −0 dist/index.d.ts
  5. +11 −0 dist/index.js
  6. +1 −0 dist/index.js.map
  7. +0 −395 dist/ngJwtAuth.d.ts
  8. +0 −688 dist/ngJwtAuth.js
  9. +0 −1 dist/ngJwtAuth.js.map
  10. +16 −0 dist/ngJwtAuthInterceptor.d.ts
  11. +46 −0 dist/ngJwtAuthInterceptor.js
  12. +1 −0 dist/ngJwtAuthInterceptor.js.map
  13. +63 −0 dist/ngJwtAuthInterfaces.d.ts
  14. +2 −0 dist/ngJwtAuthInterfaces.js
  15. +1 −0 dist/ngJwtAuthInterfaces.js.map
  16. +257 −0 dist/ngJwtAuthService.d.ts
  17. +549 −0 dist/ngJwtAuthService.js
  18. +1 −0 dist/ngJwtAuthService.js.map
  19. +31 −0 dist/ngJwtAuthServiceProvider.d.ts
  20. +84 −0 dist/ngJwtAuthServiceProvider.js
  21. +1 −0 dist/ngJwtAuthServiceProvider.js.map
  22. +8 −0 index.js
  23. +12 −4 karma.conf.js
  24. +30 −14 package.json
  25. +13 −0 src/index.ts
  26. +45 −45 src/ngJwtAuthInterceptor.ts
  27. +63 −95 src/ngJwtAuthInterfaces.ts
  28. +556 −547 src/ngJwtAuthService.ts
  29. +66 −77 src/ngJwtAuthServiceProvider.ts
  30. +47 −42 test/{test.ts → test.spec.ts}
  31. +22 −0 tsconfig.build.json
  32. +21 −0 tsconfig.test.json
  33. +0 −48 tsd.json
  34. +18 −0 typings.json
  35. +0 −63 typings/angularjs/angular-cookies.d.ts
  36. +0 −239 typings/angularjs/angular-mocks.d.ts
  37. +0 −1,715 typings/angularjs/angular.d.ts
  38. +0 −36 typings/chai-as-promised/chai-as-promised.d.ts
  39. +0 −308 typings/chai/chai.d.ts
  40. +0 −213 typings/chance/chance.d.ts
  41. +0 −3,170 typings/jquery/jquery.d.ts
  42. +0 −6,696 typings/lodash/lodash.d.ts
  43. +0 −214 typings/mocha/mocha.d.ts
  44. +0 −483 typings/moment/moment-node.d.ts
  45. +0 −8 typings/moment/moment.d.ts
  46. +0 −84 typings/sinon-chai/sinon-chai.d.ts
  47. +0 −420 typings/sinon/sinon.d.ts
  48. +0 −13 typings/tsd.d.ts
View
@@ -4,3 +4,4 @@ node_modules
reports
tmp
.idea
+typings
View
@@ -1,3 +0,0 @@
-{
- "generator-bower-typescript": {}
-}
View
@@ -1,26 +0,0 @@
-{
- "name": "ng-jwt-auth",
- "version": "3.6.0",
- "description": "Angular JSON Web Token Authentication Module",
- "main": "dist/ngJwtAuth.js",
- "dependencies": {
- "lodash": "3.10.1",
- "moment": "~2.10.3",
- "angular": ">=1.4",
- "angular-utf8-base64": "~0.0.5",
- "angular-cookies": "~1.4.3"
- },
- "devDependencies": {
- "angular-mocks": "~1.4.3",
- "faker": "~0.0.2",
- "chance": "~0.7.6"
- },
- "resolutions": {
- "angular": "1.4.3"
- },
- "ignore": [
- "**/.*",
- "typings",
- "test"
- ]
-}
View
@@ -0,0 +1 @@
+import "angular";
View
@@ -0,0 +1,11 @@
+"use strict";
+require("angular");
+var ngJwtAuthServiceProvider_1 = require("./ngJwtAuthServiceProvider");
+var ngJwtAuthInterceptor_1 = require("./ngJwtAuthInterceptor");
+angular.module('ngJwtAuth', ['ab-base64', 'ngCookies'])
+ .provider('ngJwtAuthService', ngJwtAuthServiceProvider_1.NgJwtAuthServiceProvider)
+ .service('ngJwtAuthInterceptor', ngJwtAuthInterceptor_1.NgJwtAuthInterceptor)
+ .config(['$httpProvider', '$injector', function ($httpProvider) {
+ $httpProvider.interceptors.push('ngJwtAuthInterceptor');
+ }]);
+//# sourceMappingURL=index.js.map
View
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,QAAO,SAAS,CAAC,CAAA;AACjB,yCAAuC,4BAA4B,CAAC,CAAA;AACpE,qCAAmC,wBAAwB,CAAC,CAAA;AAG5D,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;KAClD,QAAQ,CAAC,kBAAkB,EAAE,mDAAwB,CAAC;KACtD,OAAO,CAAC,sBAAsB,EAAE,2CAAoB,CAAC;KACrD,MAAM,CAAC,CAAC,eAAe,EAAE,WAAW,EAAE,UAAC,aAA8B;QAElE,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC,CACN"}
Oops, something went wrong.

0 comments on commit e72993b

Please sign in to comment.