inversify 4.11.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.auditignore +2 -0
  2. package/CHANGELOG.md +19 -0
  3. package/README.md +5 -5
  4. package/amd/annotation/decorator_utils.js +1 -1
  5. package/amd/bindings/binding.js +2 -2
  6. package/amd/constants/error_msgs.js +10 -2
  7. package/amd/container/container.js +35 -34
  8. package/amd/container/container_module.js +3 -3
  9. package/amd/inversify.js +3 -2
  10. package/amd/planning/context.js +2 -2
  11. package/amd/planning/planner.js +7 -0
  12. package/amd/planning/reflection_utils.js +2 -6
  13. package/amd/planning/request.js +2 -2
  14. package/amd/planning/target.js +2 -2
  15. package/amd/resolution/resolver.js +4 -4
  16. package/amd/utils/id.js +9 -0
  17. package/dts/bindings/binding.d.ts +1 -1
  18. package/dts/constants/error_msgs.d.ts +2 -2
  19. package/dts/container/container.d.ts +2 -2
  20. package/dts/container/container_module.d.ts +2 -2
  21. package/dts/interfaces/interfaces.d.ts +8 -7
  22. package/dts/inversify.d.ts +2 -2
  23. package/dts/planning/context.d.ts +1 -1
  24. package/dts/planning/reflection_utils.d.ts +3 -1
  25. package/dts/planning/request.d.ts +1 -1
  26. package/dts/planning/target.d.ts +1 -1
  27. package/dts/utils/id.d.ts +2 -0
  28. package/dts/utils/template.d.ts +1 -0
  29. package/es/annotation/decorator_utils.js +1 -1
  30. package/es/bindings/binding.js +2 -2
  31. package/es/constants/error_msgs.js +10 -2
  32. package/es/container/container.js +35 -34
  33. package/es/container/container_module.js +3 -3
  34. package/es/inversify.js +2 -2
  35. package/es/planning/context.js +2 -2
  36. package/es/planning/planner.js +8 -1
  37. package/es/planning/reflection_utils.js +1 -7
  38. package/es/planning/request.js +2 -2
  39. package/es/planning/target.js +2 -2
  40. package/es/resolution/resolver.js +4 -4
  41. package/es/utils/id.js +5 -0
  42. package/lib/annotation/decorator_utils.js +1 -1
  43. package/lib/bindings/binding.js +2 -2
  44. package/lib/constants/error_msgs.js +10 -2
  45. package/lib/container/container.js +35 -34
  46. package/lib/container/container_module.js +3 -3
  47. package/lib/inversify.js +3 -2
  48. package/lib/planning/context.js +2 -2
  49. package/lib/planning/planner.js +7 -0
  50. package/lib/planning/reflection_utils.js +2 -6
  51. package/lib/planning/request.js +2 -2
  52. package/lib/planning/target.js +2 -2
  53. package/lib/resolution/resolver.js +4 -4
  54. package/lib/utils/id.js +7 -0
  55. package/package.json +17 -17
  56. package/amd/utils/guid.js +0 -14
  57. package/es/utils/guid.js +0 -10
  58. package/lib/utils/guid.js +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inversify",
3
- "version": "4.11.0",
3
+ "version": "5.0.1",
4
4
  "description": "A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.",
5
5
  "main": "lib/inversify.js",
6
6
  "jsnext:main": "es/inversify.js",
@@ -35,27 +35,27 @@
35
35
  "homepage": "http://inversify.io",
36
36
  "engines": {},
37
37
  "devDependencies": {
38
- "@types/chai": "4.1.2",
38
+ "@types/chai": "4.1.4",
39
39
  "@types/harmony-proxy": "1.0.29",
40
- "@types/mocha": "2.2.48",
41
- "@types/sinon": "4.1.3",
42
- "bluebird": "3.5.1",
43
- "browserify": "16.1.0",
40
+ "@types/mocha": "5.2.3",
41
+ "@types/sinon": "5.0.5",
42
+ "bluebird": "3.5.2",
43
+ "browserify": "16.2.3",
44
44
  "chai": "4.1.2",
45
45
  "del": "3.0.0",
46
46
  "es6-symbol": "3.1.1",
47
47
  "gulp": "3.9.1",
48
48
  "gulp-istanbul": "1.1.3",
49
- "gulp-mocha": "5.0.0",
50
- "gulp-rename": "1.2.2",
49
+ "gulp-mocha": "6.0.0",
50
+ "gulp-rename": "1.4.0",
51
51
  "gulp-sourcemaps": "2.6.3",
52
52
  "gulp-tslint": "8.1.3",
53
- "gulp-typescript": "4.0.1",
54
- "gulp-uglify": "3.0.0",
53
+ "gulp-typescript": "4.0.2",
54
+ "gulp-uglify": "3.0.1",
55
55
  "harmonize": "2.0.0",
56
56
  "harmony-proxy": "1.0.1",
57
57
  "istanbul": "0.4.5",
58
- "karma": "2.0.0",
58
+ "karma": "3.0.0",
59
59
  "karma-chai": "0.1.0",
60
60
  "karma-chrome-launcher": "2.2.0",
61
61
  "karma-commonjs": "1.0.0",
@@ -66,15 +66,15 @@
66
66
  "karma-mocha-reporter": "2.2.5",
67
67
  "karma-phantomjs-launcher": "1.0.4",
68
68
  "karma-sinon": "1.0.5",
69
- "mocha": "5.0.1",
69
+ "mocha": "5.2.0",
70
70
  "performance-now": "2.1.0",
71
- "publish-please": "2.3.1",
71
+ "publish-please": "4.1.0",
72
72
  "reflect-metadata": "0.1.12",
73
73
  "run-sequence": "2.2.1",
74
- "sinon": "4.4.0",
74
+ "sinon": "6.0.1",
75
75
  "tslint": "5.9.1",
76
- "typescript": "2.6.2",
77
- "vinyl-source-stream": "2.0.0",
78
- "vinyl-buffer": "1.0.1"
76
+ "typescript": "^2.8.3",
77
+ "vinyl-buffer": "1.0.1",
78
+ "vinyl-source-stream": "2.0.0"
79
79
  }
80
80
  }
package/amd/utils/guid.js DELETED
@@ -1,14 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- function guid() {
5
- function s4() {
6
- return Math.floor((Math.random() + 1) * 0x10000)
7
- .toString(16)
8
- .substring(1);
9
- }
10
- return s4() + s4() + "-" + s4() + "-" + s4() + "-" +
11
- s4() + "-" + s4() + s4() + s4();
12
- }
13
- exports.guid = guid;
14
- });
package/es/utils/guid.js DELETED
@@ -1,10 +0,0 @@
1
- function guid() {
2
- function s4() {
3
- return Math.floor((Math.random() + 1) * 0x10000)
4
- .toString(16)
5
- .substring(1);
6
- }
7
- return s4() + s4() + "-" + s4() + "-" + s4() + "-" +
8
- s4() + "-" + s4() + s4() + s4();
9
- }
10
- export { guid };
package/lib/utils/guid.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function guid() {
4
- function s4() {
5
- return Math.floor((Math.random() + 1) * 0x10000)
6
- .toString(16)
7
- .substring(1);
8
- }
9
- return s4() + s4() + "-" + s4() + "-" + s4() + "-" +
10
- s4() + "-" + s4() + s4() + s4();
11
- }
12
- exports.guid = guid;