immosquare-cleaner 0.1.34 → 0.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +2 -2
  4. data/linters/eslint.config.mjs +30 -0
  5. data/linters/rubocop-3.2.2.yml +2 -0
  6. data/node_modules/function-bind/README.md +27 -25
  7. data/node_modules/function-bind/implementation.js +12 -44
  8. data/node_modules/function-bind/package.json +14 -38
  9. data/node_modules/is-core-module/CHANGELOG.md +0 -7
  10. data/node_modules/is-core-module/index.js +2 -2
  11. data/node_modules/is-core-module/package.json +4 -4
  12. data/package.json +2 -4
  13. metadata +3 -180
  14. data/linters/eslintrc.json +0 -57
  15. data/node_modules/.bin/rimraf +0 -1
  16. data/node_modules/eslint-config-airbnb-base/CHANGELOG.md +0 -374
  17. data/node_modules/eslint-config-airbnb-base/LICENSE.md +0 -21
  18. data/node_modules/eslint-config-airbnb-base/README.md +0 -112
  19. data/node_modules/eslint-config-airbnb-base/index.js +0 -17
  20. data/node_modules/eslint-config-airbnb-base/legacy.js +0 -34
  21. data/node_modules/eslint-config-airbnb-base/node_modules/semver/LICENSE +0 -15
  22. data/node_modules/eslint-config-airbnb-base/node_modules/semver/README.md +0 -443
  23. data/node_modules/eslint-config-airbnb-base/node_modules/semver/bin/semver.js +0 -174
  24. data/node_modules/eslint-config-airbnb-base/node_modules/semver/package.json +0 -38
  25. data/node_modules/eslint-config-airbnb-base/node_modules/semver/range.bnf +0 -16
  26. data/node_modules/eslint-config-airbnb-base/node_modules/semver/semver.js +0 -1643
  27. data/node_modules/eslint-config-airbnb-base/package.json +0 -95
  28. data/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0 -408
  29. data/node_modules/eslint-config-airbnb-base/rules/errors.js +0 -179
  30. data/node_modules/eslint-config-airbnb-base/rules/es6.js +0 -185
  31. data/node_modules/eslint-config-airbnb-base/rules/imports.js +0 -273
  32. data/node_modules/eslint-config-airbnb-base/rules/node.js +0 -43
  33. data/node_modules/eslint-config-airbnb-base/rules/strict.js +0 -6
  34. data/node_modules/eslint-config-airbnb-base/rules/style.js +0 -529
  35. data/node_modules/eslint-config-airbnb-base/rules/variables.js +0 -56
  36. data/node_modules/eslint-config-airbnb-base/test/requires.js +0 -13
  37. data/node_modules/eslint-config-airbnb-base/test/test-base.js +0 -32
  38. data/node_modules/eslint-config-airbnb-base/whitespace-async.js +0 -96
  39. data/node_modules/eslint-config-airbnb-base/whitespace.js +0 -102
  40. data/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
  41. data/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
  42. data/node_modules/eslint-plugin-import/LICENSE +0 -22
  43. data/node_modules/eslint-plugin-import/README.md +0 -500
  44. data/node_modules/eslint-plugin-import/RELEASE.md +0 -54
  45. data/node_modules/eslint-plugin-import/SECURITY.md +0 -11
  46. data/node_modules/eslint-plugin-import/config/electron.js +0 -8
  47. data/node_modules/eslint-plugin-import/config/errors.js +0 -14
  48. data/node_modules/eslint-plugin-import/config/react-native.js +0 -13
  49. data/node_modules/eslint-plugin-import/config/react.js +0 -18
  50. data/node_modules/eslint-plugin-import/config/recommended.js +0 -28
  51. data/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
  52. data/node_modules/eslint-plugin-import/config/typescript.js +0 -34
  53. data/node_modules/eslint-plugin-import/config/warnings.js +0 -12
  54. data/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
  55. data/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
  56. data/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
  57. data/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
  58. data/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
  59. data/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
  60. data/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
  61. data/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
  62. data/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
  63. data/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
  64. data/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
  65. data/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
  66. data/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
  67. data/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
  68. data/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
  69. data/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
  70. data/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
  71. data/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
  72. data/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
  73. data/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
  74. data/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
  75. data/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
  76. data/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
  77. data/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
  78. data/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
  79. data/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
  80. data/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
  81. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
  82. data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
  83. data/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
  84. data/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
  85. data/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
  86. data/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
  87. data/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
  88. data/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
  89. data/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
  90. data/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
  91. data/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
  92. data/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
  93. data/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
  94. data/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
  95. data/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
  96. data/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
  97. data/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
  98. data/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
  99. data/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
  100. data/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
  101. data/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
  102. data/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
  103. data/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
  104. data/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
  105. data/node_modules/eslint-plugin-import/lib/index.js +0 -71
  106. data/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
  107. data/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
  108. data/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
  109. data/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
  110. data/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
  111. data/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
  112. data/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
  113. data/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
  114. data/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
  115. data/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
  116. data/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
  117. data/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
  118. data/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
  119. data/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
  120. data/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
  121. data/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
  122. data/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
  123. data/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
  124. data/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
  125. data/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
  126. data/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
  127. data/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
  128. data/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
  129. data/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
  130. data/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
  131. data/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
  132. data/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
  133. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
  134. data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
  135. data/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
  136. data/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
  137. data/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
  138. data/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
  139. data/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
  140. data/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
  141. data/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
  142. data/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
  143. data/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
  144. data/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
  145. data/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
  146. data/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
  147. data/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
  148. data/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
  149. data/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
  150. data/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
  151. data/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
  152. data/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
  153. data/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
  154. data/node_modules/eslint-plugin-import/node_modules/debug/CHANGELOG.md +0 -395
  155. data/node_modules/eslint-plugin-import/node_modules/debug/LICENSE +0 -19
  156. data/node_modules/eslint-plugin-import/node_modules/debug/README.md +0 -437
  157. data/node_modules/eslint-plugin-import/node_modules/debug/node.js +0 -1
  158. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/index.js +0 -162
  159. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/license.md +0 -21
  160. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/package.json +0 -38
  161. data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/readme.md +0 -59
  162. data/node_modules/eslint-plugin-import/node_modules/debug/package.json +0 -51
  163. data/node_modules/eslint-plugin-import/node_modules/debug/src/browser.js +0 -180
  164. data/node_modules/eslint-plugin-import/node_modules/debug/src/common.js +0 -249
  165. data/node_modules/eslint-plugin-import/node_modules/debug/src/index.js +0 -12
  166. data/node_modules/eslint-plugin-import/node_modules/debug/src/node.js +0 -177
  167. data/node_modules/eslint-plugin-import/node_modules/doctrine/CHANGELOG.md +0 -94
  168. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE +0 -177
  169. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.closure-compiler +0 -202
  170. data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.esprima +0 -19
  171. data/node_modules/eslint-plugin-import/node_modules/doctrine/README.md +0 -165
  172. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/doctrine.js +0 -899
  173. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/typed.js +0 -1305
  174. data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/utility.js +0 -35
  175. data/node_modules/eslint-plugin-import/node_modules/doctrine/package.json +0 -57
  176. data/node_modules/eslint-plugin-import/node_modules/minimatch/LICENSE +0 -15
  177. data/node_modules/eslint-plugin-import/node_modules/minimatch/README.md +0 -230
  178. data/node_modules/eslint-plugin-import/node_modules/minimatch/minimatch.js +0 -947
  179. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
  180. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
  181. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
  182. data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
  183. data/node_modules/eslint-plugin-import/node_modules/minimatch/package.json +0 -33
  184. data/node_modules/eslint-plugin-import/node_modules/semver/LICENSE +0 -15
  185. data/node_modules/eslint-plugin-import/node_modules/semver/README.md +0 -443
  186. data/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js +0 -174
  187. data/node_modules/eslint-plugin-import/node_modules/semver/package.json +0 -38
  188. data/node_modules/eslint-plugin-import/node_modules/semver/range.bnf +0 -16
  189. data/node_modules/eslint-plugin-import/node_modules/semver/semver.js +0 -1643
  190. data/node_modules/eslint-plugin-import/package.json +0 -124
  191. data/node_modules/function-bind/CHANGELOG.md +0 -136
@@ -1,116 +0,0 @@
1
- 'use strict';
2
-
3
- var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
4
-
5
- var SINGLE_EXPORT_ERROR_MESSAGE = 'Prefer default export on a file with single export.';
6
- var ANY_EXPORT_ERROR_MESSAGE = 'Prefer default export to be present on every file that has export.';
7
-
8
- module.exports = {
9
- meta: {
10
- type: 'suggestion',
11
- docs: {
12
- category: 'Style guide',
13
- description: 'Prefer a default export if module exports a single name or multiple names.',
14
- url: (0, _docsUrl2['default'])('prefer-default-export') },
15
-
16
- schema: [{
17
- type: 'object',
18
- properties: {
19
- target: {
20
- type: 'string',
21
- 'enum': ['single', 'any'],
22
- 'default': 'single' } },
23
-
24
-
25
- additionalProperties: false }] },
26
-
27
-
28
-
29
- create: function () {function create(context) {
30
- var specifierExportCount = 0;
31
- var hasDefaultExport = false;
32
- var hasStarExport = false;
33
- var hasTypeExport = false;
34
- var namedExportNode = null;
35
- // get options. by default we look into files with single export
36
- var _ref = context.options[0] || {},_ref$target = _ref.target,target = _ref$target === undefined ? 'single' : _ref$target;
37
- function captureDeclaration(identifierOrPattern) {
38
- if (identifierOrPattern && identifierOrPattern.type === 'ObjectPattern') {
39
- // recursively capture
40
- identifierOrPattern.properties.
41
- forEach(function (property) {
42
- captureDeclaration(property.value);
43
- });
44
- } else if (identifierOrPattern && identifierOrPattern.type === 'ArrayPattern') {
45
- identifierOrPattern.elements.
46
- forEach(captureDeclaration);
47
- } else {
48
- // assume it's a single standard identifier
49
- specifierExportCount++;
50
- }
51
- }
52
-
53
- return {
54
- ExportDefaultSpecifier: function () {function ExportDefaultSpecifier() {
55
- hasDefaultExport = true;
56
- }return ExportDefaultSpecifier;}(),
57
-
58
- ExportSpecifier: function () {function ExportSpecifier(node) {
59
- if ((node.exported.name || node.exported.value) === 'default') {
60
- hasDefaultExport = true;
61
- } else {
62
- specifierExportCount++;
63
- namedExportNode = node;
64
- }
65
- }return ExportSpecifier;}(),
66
-
67
- ExportNamedDeclaration: function () {function ExportNamedDeclaration(node) {
68
- // if there are specifiers, node.declaration should be null
69
- if (!node.declaration) {return;}var
70
-
71
- type = node.declaration.type;
72
-
73
- if (
74
- type === 'TSTypeAliasDeclaration' ||
75
- type === 'TypeAlias' ||
76
- type === 'TSInterfaceDeclaration' ||
77
- type === 'InterfaceDeclaration')
78
- {
79
- specifierExportCount++;
80
- hasTypeExport = true;
81
- return;
82
- }
83
-
84
- if (node.declaration.declarations) {
85
- node.declaration.declarations.forEach(function (declaration) {
86
- captureDeclaration(declaration.id);
87
- });
88
- } else {
89
- // captures 'export function foo() {}' syntax
90
- specifierExportCount++;
91
- }
92
-
93
- namedExportNode = node;
94
- }return ExportNamedDeclaration;}(),
95
-
96
- ExportDefaultDeclaration: function () {function ExportDefaultDeclaration() {
97
- hasDefaultExport = true;
98
- }return ExportDefaultDeclaration;}(),
99
-
100
- ExportAllDeclaration: function () {function ExportAllDeclaration() {
101
- hasStarExport = true;
102
- }return ExportAllDeclaration;}(),
103
-
104
- 'Program:exit': function () {function ProgramExit() {
105
- if (hasDefaultExport || hasStarExport || hasTypeExport) {
106
- return;
107
- }
108
- if (target === 'single' && specifierExportCount === 1) {
109
- context.report(namedExportNode, SINGLE_EXPORT_ERROR_MESSAGE);
110
- } else if (target === 'any' && specifierExportCount > 0) {
111
- context.report(namedExportNode, ANY_EXPORT_ERROR_MESSAGE);
112
- }
113
- }return ProgramExit;}() };
114
-
115
- }return create;}() };
116
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9wcmV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gICAgIC8vIGlmIHRoZXJlIGFyZSBzcGVjaWZpZXJzLCBub2RlLmRlY2xhcmF0aW9uIHNob3VsZCBiZSBudWxsXG4gICAgICAgIGlmICghbm9kZS5kZWNsYXJhdGlvbikgeyByZXR1cm47IH1cblxuICAgICAgICBjb25zdCB7IHR5cGUgfSA9IG5vZGUuZGVjbGFyYXRpb247XG5cbiAgICAgICAgaWYgKFxuICAgICAgICAgIHR5cGUgPT09ICdUU1R5cGVBbGlhc0RlY2xhcmF0aW9uJ1xuICAgICAgICAgIHx8IHR5cGUgPT09ICdUeXBlQWxpYXMnXG4gICAgICAgICAgfHwgdHlwZSA9PT0gJ1RTSW50ZXJmYWNlRGVjbGFyYXRpb24nXG4gICAgICAgICAgfHwgdHlwZSA9PT0gJ0ludGVyZmFjZURlY2xhcmF0aW9uJ1xuICAgICAgICApIHtcbiAgICAgICAgICBzcGVjaWZpZXJFeHBvcnRDb3VudCsrO1xuICAgICAgICAgIGhhc1R5cGVFeHBvcnQgPSB0cnVlO1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uLmRlY2xhcmF0aW9ucykge1xuICAgICAgICAgIG5vZGUuZGVjbGFyYXRpb24uZGVjbGFyYXRpb25zLmZvckVhY2goZnVuY3Rpb24gKGRlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICBjYXB0dXJlRGVjbGFyYXRpb24oZGVjbGFyYXRpb24uaWQpO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIGNhcHR1cmVzICdleHBvcnQgZnVuY3Rpb24gZm9vKCkge30nIHN5bnRheFxuICAgICAgICAgIHNwZWNpZmllckV4cG9ydENvdW50Kys7XG4gICAgICAgIH1cblxuICAgICAgICBuYW1lZEV4cG9ydE5vZGUgPSBub2RlO1xuICAgICAgfSxcblxuICAgICAgRXhwb3J0RGVmYXVsdERlY2xhcmF0aW9uKCkge1xuICAgICAgICBoYXNEZWZhdWx0RXhwb3J0ID0gdHJ1ZTtcbiAgICAgIH0sXG5cbiAgICAgIEV4cG9ydEFsbERlY2xhcmF0aW9uKCkge1xuICAgICAgICBoYXNTdGFyRXhwb3J0ID0gdHJ1ZTtcbiAgICAgIH0sXG5cbiAgICAgICdQcm9ncmFtOmV4aXQnKCkge1xuICAgICAgICBpZiAoaGFzRGVmYXVsdEV4cG9ydCB8fCBoYXNTdGFyRXhwb3J0IHx8IGhhc1R5cGVFeHBvcnQpIHtcbiAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRhcmdldCA9PT0gJ3NpbmdsZScgJiYgc3BlY2lmaWVyRXhwb3J0Q291bnQgPT09IDEpIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChuYW1lZEV4cG9ydE5vZGUsIFNJTkdMRV9FWFBPUlRfRVJST1JfTUVTU0FHRSk7XG4gICAgICAgIH0gZWxzZSBpZiAodGFyZ2V0ID09PSAnYW55JyAmJiBzcGVjaWZpZXJFeHBvcnRDb3VudCA+IDApIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChuYW1lZEV4cG9ydE5vZGUsIEFOWV9FWFBPUlRfRVJST1JfTUVTU0FHRSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
-
4
-
5
-
6
- var _unambiguous = require('eslint-module-utils/unambiguous');
7
- var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };} /**
8
- * @fileOverview Report modules that could parse incorrectly as scripts.
9
- * @author Ben Mosher
10
- */module.exports = { meta: {
11
- type: 'suggestion',
12
- docs: {
13
- category: 'Module systems',
14
- description: 'Forbid potentially ambiguous parse goal (`script` vs. `module`).',
15
- url: (0, _docsUrl2['default'])('unambiguous') },
16
-
17
- schema: [] },
18
-
19
-
20
- create: function () {function create(context) {
21
- // ignore non-modules
22
- if (context.parserOptions.sourceType !== 'module') {
23
- return {};
24
- }
25
-
26
- return {
27
- Program: function () {function Program(ast) {
28
- if (!(0, _unambiguous.isModule)(ast)) {
29
- context.report({
30
- node: ast,
31
- message: 'This module could be parsed as a valid script.' });
32
-
33
- }
34
- }return Program;}() };
35
-
36
-
37
- }return create;}() };
38
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy91bmFtYmlndW91cy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsInR5cGUiLCJkb2NzIiwiY2F0ZWdvcnkiLCJkZXNjcmlwdGlvbiIsInVybCIsInNjaGVtYSIsImNyZWF0ZSIsImNvbnRleHQiLCJwYXJzZXJPcHRpb25zIiwic291cmNlVHlwZSIsIlByb2dyYW0iLCJhc3QiLCJyZXBvcnQiLCJub2RlIiwibWVzc2FnZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFLQTtBQUNBLHFDLGlKQU5BOzs7eUxBUUFBLE9BQU9DLE9BQVAsR0FBaUIsRUFDZkMsTUFBTTtBQUNKQyxVQUFNLFlBREY7QUFFSkMsVUFBTTtBQUNKQyxnQkFBVSxnQkFETjtBQUVKQyxtQkFBYSxrRUFGVDtBQUdKQyxXQUFLLDBCQUFRLGFBQVIsQ0FIRCxFQUZGOztBQU9KQyxZQUFRLEVBUEosRUFEUzs7O0FBV2ZDLFFBWGUsK0JBV1JDLE9BWFEsRUFXQztBQUNkO0FBQ0EsVUFBSUEsUUFBUUMsYUFBUixDQUFzQkMsVUFBdEIsS0FBcUMsUUFBekMsRUFBbUQ7QUFDakQsZUFBTyxFQUFQO0FBQ0Q7O0FBRUQsYUFBTztBQUNMQyxlQURLLGdDQUNHQyxHQURILEVBQ1E7QUFDWCxnQkFBSSxDQUFDLDJCQ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AgICAgIGlmICghaXNNb2R1bGUoYXN0KSkge1xuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGU6IGFzdCxcbiAgICAgICAgICAgIG1lc3NhZ2U6ICdUaGlzIG1vZHVsZSBjb3VsZCBiZSBwYXJzZWQgYXMgYSB2YWxpZCBzY3JpcHQuJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9O1xuXG4gIH0sXG59O1xuIl19
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Ben Mosher
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
@@ -1,21 +0,0 @@
1
- # eslint-plugin-import/memo-parser
2
-
3
- ## NOTE
4
-
5
- This used to improve performance, but as of ESLint 5 and v2 of this plugin, it seems to just consume a bunch of memory and slightly increase lint times.
6
-
7
- **Not recommended for use at this time!**
8
-
9
- This parser is just a memoizing wrapper around some actual parser.
10
-
11
- To configure, just add your _actual_ parser to the `parserOptions`, like so:
12
-
13
- ```yaml
14
- parser: eslint-plugin-import/memo-parser
15
- # parser: babel-eslint
16
-
17
- parserOptions:
18
- parser: babel-eslint
19
- sourceType: module
20
- ecmaVersion: 6
21
- ```
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- const crypto = require('crypto');
4
- const moduleRequire = require('eslint-module-utils/module-require').default;
5
- const hashObject = require('eslint-module-utils/hash').hashObject;
6
-
7
- const cache = new Map();
8
-
9
- // must match ESLint default options or we'll miss the cache every time
10
- const parserOptions = {
11
- loc: true,
12
- range: true,
13
- raw: true,
14
- tokens: true,
15
- comment: true,
16
- attachComment: true,
17
- };
18
-
19
- exports.parse = function parse(content, options) {
20
- options = { ...options, ...parserOptions };
21
-
22
- if (!options.filePath) {
23
- throw new Error('no file path provided!');
24
- }
25
-
26
- const keyHash = crypto.createHash('sha256');
27
- keyHash.update(content);
28
- hashObject(options, keyHash);
29
-
30
- const key = keyHash.digest('hex');
31
-
32
- let ast = cache.get(key);
33
- if (ast != null) { return ast; }
34
-
35
- const realParser = moduleRequire(options.parser);
36
-
37
- ast = realParser.parse(content, options);
38
- cache.set(key, ast);
39
-
40
- return ast;
41
- };
@@ -1,395 +0,0 @@
1
-
2
- 3.1.0 / 2017-09-26
3
- ==================
4
-
5
- * Add `DEBUG_HIDE_DATE` env var (#486)
6
- * Remove ReDoS regexp in %o formatter (#504)
7
- * Remove "component" from package.json
8
- * Remove `component.json`
9
- * Ignore package-lock.json
10
- * Examples: fix colors printout
11
- * Fix: browser detection
12
- * Fix: spelling mistake (#496, @EdwardBetts)
13
-
14
- 3.0.1 / 2017-08-24
15
- ==================
16
-
17
- * Fix: Disable colors in Edge and Internet Explorer (#489)
18
-
19
- 3.0.0 / 2017-08-08
20
- ==================
21
-
22
- * Breaking: Remove DEBUG_FD (#406)
23
- * Breaking: Use `Date#toISOString()` instead to `Date#toUTCString()` when output is not a TTY (#418)
24
- * Breaking: Make millisecond timer namespace specific and allow 'always enabled' output (#408)
25
- * Addition: document `enabled` flag (#465)
26
- * Addition: add 256 colors mode (#481)
27
- * Addition: `enabled()` updates existing debug instances, add `destroy()` function (#440)
28
- * Update: component: update "ms" to v2.0.0
29
- * Update: separate the Node and Browser tests in Travis-CI
30
- * Update: refactor Readme, fixed documentation, added "Namespace Colors" section, redid screenshots
31
- * Update: separate Node.js and web browser examples for organization
32
- * Update: update "browserify" to v14.4.0
33
- * Fix: fix Readme typo (#473)
34
-
35
- 2.6.9 / 2017-09-22
36
- ==================
37
-
38
- * remove ReDoS regexp in %o formatter (#504)
39
-
40
- 2.6.8 / 2017-05-18
41
- ==================
42
-
43
- * Fix: Check for undefined on browser globals (#462, @marbemac)
44
-
45
- 2.6.7 / 2017-05-16
46
- ==================
47
-
48
- * Fix: Update ms to 2.0.0 to fix regular expression denial of service vulnerability (#458, @hubdotcom)
49
- * Fix: Inline extend function in node implementation (#452, @dougwilson)
50
- * Docs: Fix typo (#455, @msasad)
51
-
52
- 2.6.5 / 2017-04-27
53
- ==================
54
-
55
- * Fix: null reference check on window.documentElement.style.WebkitAppearance (#447, @thebigredgeek)
56
- * Misc: clean up browser reference checks (#447, @thebigredgeek)
57
- * Misc: add npm-debug.log to .gitignore (@thebigredgeek)
58
-
59
-
60
- 2.6.4 / 2017-04-20
61
- ==================
62
-
63
- * Fix: bug that would occur if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
64
- * Chore: ignore bower.json in npm installations. (#437, @joaovieira)
65
- * Misc: update "ms" to v0.7.3 (@tootallnate)
66
-
67
- 2.6.3 / 2017-03-13
68
- ==================
69
-
70
- * Fix: Electron reference to `process.env.DEBUG` (#431, @paulcbetts)
71
- * Docs: Changelog fix (@thebigredgeek)
72
-
73
- 2.6.2 / 2017-03-10
74
- ==================
75
-
76
- * Fix: DEBUG_MAX_ARRAY_LENGTH (#420, @slavaGanzin)
77
- * Docs: Add backers and sponsors from Open Collective (#422, @piamancini)
78
- * Docs: Add Slackin invite badge (@tootallnate)
79
-
80
- 2.6.1 / 2017-02-10
81
- ==================
82
-
83
- * Fix: Module's `export default` syntax fix for IE8 `Expected identifier` error
84
- * Fix: Whitelist DEBUG_FD for values 1 and 2 only (#415, @pi0)
85
- * Fix: IE8 "Expected identifier" error (#414, @vgoma)
86
- * Fix: Namespaces would not disable once enabled (#409, @musikov)
87
-
88
- 2.6.0 / 2016-12-28
89
- ==================
90
-
91
- * Fix: added better null pointer checks for browser useColors (@thebigredgeek)
92
- * Improvement: removed explicit `window.debug` export (#404, @tootallnate)
93
- * Improvement: deprecated `DEBUG_FD` environment variable (#405, @tootallnate)
94
-
95
- 2.5.2 / 2016-12-25
96
- ==================
97
-
98
- * Fix: reference error on window within webworkers (#393, @KlausTrainer)
99
- * Docs: fixed README typo (#391, @lurch)
100
- * Docs: added notice about v3 api discussion (@thebigredgeek)
101
-
102
- 2.5.1 / 2016-12-20
103
- ==================
104
-
105
- * Fix: babel-core compatibility
106
-
107
- 2.5.0 / 2016-12-20
108
- ==================
109
-
110
- * Fix: wrong reference in bower file (@thebigredgeek)
111
- * Fix: webworker compatibility (@thebigredgeek)
112
- * Fix: output formatting issue (#388, @kribblo)
113
- * Fix: babel-loader compatibility (#383, @escwald)
114
- * Misc: removed built asset from repo and publications (@thebigredgeek)
115
- * Misc: moved source files to /src (#378, @yamikuronue)
116
- * Test: added karma integration and replaced babel with browserify for browser tests (#378, @yamikuronue)
117
- * Test: coveralls integration (#378, @yamikuronue)
118
- * Docs: simplified language in the opening paragraph (#373, @yamikuronue)
119
-
120
- 2.4.5 / 2016-12-17
121
- ==================
122
-
123
- * Fix: `navigator` undefined in Rhino (#376, @jochenberger)
124
- * Fix: custom log function (#379, @hsiliev)
125
- * Improvement: bit of cleanup + linting fixes (@thebigredgeek)
126
- * Improvement: rm non-maintainted `dist/` dir (#375, @freewil)
127
- * Docs: simplified language in the opening paragraph. (#373, @yamikuronue)
128
-
129
- 2.4.4 / 2016-12-14
130
- ==================
131
-
132
- * Fix: work around debug being loaded in preload scripts for electron (#368, @paulcbetts)
133
-
134
- 2.4.3 / 2016-12-14
135
- ==================
136
-
137
- * Fix: navigation.userAgent error for react native (#364, @escwald)
138
-
139
- 2.4.2 / 2016-12-14
140
- ==================
141
-
142
- * Fix: browser colors (#367, @tootallnate)
143
- * Misc: travis ci integration (@thebigredgeek)
144
- * Misc: added linting and testing boilerplate with sanity check (@thebigredgeek)
145
-
146
- 2.4.1 / 2016-12-13
147
- ==================
148
-
149
- * Fix: typo that broke the package (#356)
150
-
151
- 2.4.0 / 2016-12-13
152
- ==================
153
-
154
- * Fix: bower.json references unbuilt src entry point (#342, @justmatt)
155
- * Fix: revert "handle regex special characters" (@tootallnate)
156
- * Feature: configurable util.inspect()`options for NodeJS (#327, @tootallnate)
157
- * Feature: %O`(big O) pretty-prints objects (#322, @tootallnate)
158
- * Improvement: allow colors in workers (#335, @botverse)
159
- * Improvement: use same color for same namespace. (#338, @lchenay)
160
-
161
- 2.3.3 / 2016-11-09
162
- ==================
163
-
164
- * Fix: Catch `JSON.stringify()` errors (#195, Jovan Alleyne)
165
- * Fix: Returning `localStorage` saved values (#331, Levi Thomason)
166
- * Improvement: Don't create an empty object when no `process` (Nathan Rajlich)
167
-
168
- 2.3.2 / 2016-11-09
169
- ==================
170
-
171
- * Fix: be super-safe in index.js as well (@TooTallNate)
172
- * Fix: should check whether process exists (Tom Newby)
173
-
174
- 2.3.1 / 2016-11-09
175
- ==================
176
-
177
- * Fix: Added electron compatibility (#324, @paulcbetts)
178
- * Improvement: Added performance optimizations (@tootallnate)
179
- * Readme: Corrected PowerShell environment variable example (#252, @gimre)
180
- * Misc: Removed yarn lock file from source control (#321, @fengmk2)
181
-
182
- 2.3.0 / 2016-11-07
183
- ==================
184
-
185
- * Fix: Consistent placement of ms diff at end of output (#215, @gorangajic)
186
- * Fix: Escaping of regex special characters in namespace strings (#250, @zacronos)
187
- * Fix: Fixed bug causing crash on react-native (#282, @vkarpov15)
188
- * Feature: Enabled ES6+ compatible import via default export (#212 @bucaran)
189
- * Feature: Added %O formatter to reflect Chrome's console.log capability (#279, @oncletom)
190
- * Package: Update "ms" to 0.7.2 (#315, @DevSide)
191
- * Package: removed superfluous version property from bower.json (#207 @kkirsche)
192
- * Readme: fix USE_COLORS to DEBUG_COLORS
193
- * Readme: Doc fixes for format string sugar (#269, @mlucool)
194
- * Readme: Updated docs for DEBUG_FD and DEBUG_COLORS environment variables (#232, @mattlyons0)
195
- * Readme: doc fixes for PowerShell (#271 #243, @exoticknight @unreadable)
196
- * Readme: better docs for browser support (#224, @matthewmueller)
197
- * Tooling: Added yarn integration for development (#317, @thebigredgeek)
198
- * Misc: Renamed History.md to CHANGELOG.md (@thebigredgeek)
199
- * Misc: Added license file (#226 #274, @CantemoInternal @sdaitzman)
200
- * Misc: Updated contributors (@thebigredgeek)
201
-
202
- 2.2.0 / 2015-05-09
203
- ==================
204
-
205
- * package: update "ms" to v0.7.1 (#202, @dougwilson)
206
- * README: add logging to file example (#193, @DanielOchoa)
207
- * README: fixed a typo (#191, @amir-s)
208
- * browser: expose `storage` (#190, @stephenmathieson)
209
- * Makefile: add a `distclean` target (#189, @stephenmathieson)
210
-
211
- 2.1.3 / 2015-03-13
212
- ==================
213
-
214
- * Updated stdout/stderr example (#186)
215
- * Updated example/stdout.js to match debug current behaviour
216
- * Renamed example/stderr.js to stdout.js
217
- * Update Readme.md (#184)
218
- * replace high intensity foreground color for bold (#182, #183)
219
-
220
- 2.1.2 / 2015-03-01
221
- ==================
222
-
223
- * dist: recompile
224
- * update "ms" to v0.7.0
225
- * package: update "browserify" to v9.0.3
226
- * component: fix "ms.js" repo location
227
- * changed bower package name
228
- * updated documentation about using debug in a browser
229
- * fix: security error on safari (#167, #168, @yields)
230
-
231
- 2.1.1 / 2014-12-29
232
- ==================
233
-
234
- * browser: use `typeof` to check for `console` existence
235
- * browser: check for `console.log` truthiness (fix IE 8/9)
236
- * browser: add support for Chrome apps
237
- * Readme: added Windows usage remarks
238
- * Add `bower.json` to properly support bower install
239
-
240
- 2.1.0 / 2014-10-15
241
- ==================
242
-
243
- * node: implement `DEBUG_FD` env variable support
244
- * package: update "browserify" to v6.1.0
245
- * package: add "license" field to package.json (#135, @panuhorsmalahti)
246
-
247
- 2.0.0 / 2014-09-01
248
- ==================
249
-
250
- * package: update "browserify" to v5.11.0
251
- * node: use stderr rather than stdout for logging (#29, @stephenmathieson)
252
-
253
- 1.0.4 / 2014-07-15
254
- ==================
255
-
256
- * dist: recompile
257
- * example: remove `console.info()` log usage
258
- * example: add "Content-Type" UTF-8 header to browser example
259
- * browser: place %c marker after the space character
260
- * browser: reset the "content" color via `color: inherit`
261
- * browser: add colors support for Firefox >= v31
262
- * debug: prefer an instance `log()` function over the global one (#119)
263
- * Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
264
-
265
- 1.0.3 / 2014-07-09
266
- ==================
267
-
268
- * Add support for multiple wildcards in namespaces (#122, @seegno)
269
- * browser: fix lint
270
-
271
- 1.0.2 / 2014-06-10
272
- ==================
273
-
274
- * browser: update color palette (#113, @gscottolson)
275
- * common: make console logging function configurable (#108, @timoxley)
276
- * node: fix %o colors on old node <= 0.8.x
277
- * Makefile: find node path using shell/which (#109, @timoxley)
278
-
279
- 1.0.1 / 2014-06-06
280
- ==================
281
-
282
- * browser: use `removeItem()` to clear localStorage
283
- * browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
284
- * package: add "contributors" section
285
- * node: fix comment typo
286
- * README: list authors
287
-
288
- 1.0.0 / 2014-06-04
289
- ==================
290
-
291
- * make ms diff be global, not be scope
292
- * debug: ignore empty strings in enable()
293
- * node: make DEBUG_COLORS able to disable coloring
294
- * *: export the `colors` array
295
- * npmignore: don't publish the `dist` dir
296
- * Makefile: refactor to use browserify
297
- * package: add "browserify" as a dev dependency
298
- * Readme: add Web Inspector Colors section
299
- * node: reset terminal color for the debug content
300
- * node: map "%o" to `util.inspect()`
301
- * browser: map "%j" to `JSON.stringify()`
302
- * debug: add custom "formatters"
303
- * debug: use "ms" module for humanizing the diff
304
- * Readme: add "bash" syntax highlighting
305
- * browser: add Firebug color support
306
- * browser: add colors for WebKit browsers
307
- * node: apply log to `console`
308
- * rewrite: abstract common logic for Node & browsers
309
- * add .jshintrc file
310
-
311
- 0.8.1 / 2014-04-14
312
- ==================
313
-
314
- * package: re-add the "component" section
315
-
316
- 0.8.0 / 2014-03-30
317
- ==================
318
-
319
- * add `enable()` method for nodejs. Closes #27
320
- * change from stderr to stdout
321
- * remove unnecessary index.js file
322
-
323
- 0.7.4 / 2013-11-13
324
- ==================
325
-
326
- * remove "browserify" key from package.json (fixes something in browserify)
327
-
328
- 0.7.3 / 2013-10-30
329
- ==================
330
-
331
- * fix: catch localStorage security error when cookies are blocked (Chrome)
332
- * add debug(err) support. Closes #46
333
- * add .browser prop to package.json. Closes #42
334
-
335
- 0.7.2 / 2013-02-06
336
- ==================
337
-
338
- * fix package.json
339
- * fix: Mobile Safari (private mode) is broken with debug
340
- * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
341
-
342
- 0.7.1 / 2013-02-05
343
- ==================
344
-
345
- * add repository URL to package.json
346
- * add DEBUG_COLORED to force colored output
347
- * add browserify support
348
- * fix component. Closes #24
349
-
350
- 0.7.0 / 2012-05-04
351
- ==================
352
-
353
- * Added .component to package.json
354
- * Added debug.component.js build
355
-
356
- 0.6.0 / 2012-03-16
357
- ==================
358
-
359
- * Added support for "-" prefix in DEBUG [Vinay Pulim]
360
- * Added `.enabled` flag to the node version [TooTallNate]
361
-
362
- 0.5.0 / 2012-02-02
363
- ==================
364
-
365
- * Added: humanize diffs. Closes #8
366
- * Added `debug.disable()` to the CS variant
367
- * Removed padding. Closes #10
368
- * Fixed: persist client-side variant again. Closes #9
369
-
370
- 0.4.0 / 2012-02-01
371
- ==================
372
-
373
- * Added browser variant support for older browsers [TooTallNate]
374
- * Added `debug.enable('project:*')` to browser variant [TooTallNate]
375
- * Added padding to diff (moved it to the right)
376
-
377
- 0.3.0 / 2012-01-26
378
- ==================
379
-
380
- * Added millisecond diff when isatty, otherwise UTC string
381
-
382
- 0.2.0 / 2012-01-22
383
- ==================
384
-
385
- * Added wildcard support
386
-
387
- 0.1.0 / 2011-12-02
388
- ==================
389
-
390
- * Added: remove colors unless stderr isatty [TooTallNate]
391
-
392
- 0.0.1 / 2010-01-03
393
- ==================
394
-
395
- * Initial release
@@ -1,19 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
7
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9
- subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all copies or substantial
12
- portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
-