projen 0.80.7 → 0.80.9

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 (187) hide show
  1. package/.jsii +41 -41
  2. package/lib/awscdk/auto-discover.js +5 -5
  3. package/lib/awscdk/awscdk-app-java.js +1 -1
  4. package/lib/awscdk/awscdk-app-py.js +1 -1
  5. package/lib/awscdk/awscdk-app-ts.js +1 -1
  6. package/lib/awscdk/awscdk-construct.js +2 -2
  7. package/lib/awscdk/awscdk-deps-java.js +1 -1
  8. package/lib/awscdk/awscdk-deps-js.js +1 -1
  9. package/lib/awscdk/awscdk-deps-py.js +1 -1
  10. package/lib/awscdk/awscdk-deps.js +1 -1
  11. package/lib/awscdk/cdk-config.js +1 -1
  12. package/lib/awscdk/cdk-tasks.js +1 -1
  13. package/lib/awscdk/integration-test.js +1 -1
  14. package/lib/awscdk/lambda-extension.js +1 -1
  15. package/lib/awscdk/lambda-function.js +2 -2
  16. package/lib/build/build-workflow.js +1 -1
  17. package/lib/cdk/auto-discover-base.js +2 -2
  18. package/lib/cdk/construct-lib.js +1 -1
  19. package/lib/cdk/integration-test-base.js +1 -1
  20. package/lib/cdk/jsii-docgen.js +1 -1
  21. package/lib/cdk/jsii-project.js +1 -1
  22. package/lib/cdk8s/auto-discover.js +2 -2
  23. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  24. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  25. package/lib/cdk8s/cdk8s-construct.js +1 -1
  26. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  27. package/lib/cdk8s/cdk8s-deps.js +1 -1
  28. package/lib/cdk8s/integration-test.js +1 -1
  29. package/lib/cdktf/cdktf-construct.js +1 -1
  30. package/lib/circleci/circleci.js +1 -1
  31. package/lib/component.js +1 -1
  32. package/lib/dependencies.js +1 -1
  33. package/lib/dev-env.js +1 -1
  34. package/lib/docker-compose/docker-compose-service.js +1 -1
  35. package/lib/docker-compose/docker-compose.js +1 -1
  36. package/lib/file.js +1 -1
  37. package/lib/gitattributes.js +1 -1
  38. package/lib/github/actions-provider.js +1 -1
  39. package/lib/github/auto-approve.js +1 -1
  40. package/lib/github/auto-merge.js +1 -1
  41. package/lib/github/dependabot.js +1 -1
  42. package/lib/github/github-credentials.js +1 -1
  43. package/lib/github/github-project.js +1 -1
  44. package/lib/github/github.js +1 -1
  45. package/lib/github/mergify.js +1 -1
  46. package/lib/github/pr-template.js +1 -1
  47. package/lib/github/pull-request-lint.js +1 -1
  48. package/lib/github/stale.js +1 -1
  49. package/lib/github/task-workflow-job.js +1 -1
  50. package/lib/github/task-workflow.js +1 -1
  51. package/lib/github/workflow-actions.js +1 -1
  52. package/lib/github/workflow-jobs.js +1 -1
  53. package/lib/github/workflow-steps.js +1 -1
  54. package/lib/github/workflows.js +1 -1
  55. package/lib/gitlab/configuration.js +1 -1
  56. package/lib/gitlab/gitlab-configuration.js +1 -1
  57. package/lib/gitlab/nested-configuration.js +1 -1
  58. package/lib/gitpod.js +1 -1
  59. package/lib/ignore-file.js +1 -1
  60. package/lib/ini.js +1 -1
  61. package/lib/java/java-project.js +1 -1
  62. package/lib/java/junit.js +1 -1
  63. package/lib/java/maven-compile.js +1 -1
  64. package/lib/java/maven-packaging.js +1 -1
  65. package/lib/java/maven-sample.js +1 -1
  66. package/lib/java/pom.js +1 -1
  67. package/lib/java/projenrc.js +1 -1
  68. package/lib/javascript/bundler.js +1 -1
  69. package/lib/javascript/eslint.js +1 -1
  70. package/lib/javascript/jest.js +4 -4
  71. package/lib/javascript/license-checker.js +1 -1
  72. package/lib/javascript/node-package.js +1 -1
  73. package/lib/javascript/node-project.js +1 -1
  74. package/lib/javascript/npm-config.js +1 -1
  75. package/lib/javascript/prettier.js +1 -1
  76. package/lib/javascript/projenrc.js +1 -1
  77. package/lib/javascript/typescript-config.js +2 -2
  78. package/lib/javascript/upgrade-dependencies.js +2 -2
  79. package/lib/javascript/yarnrc.js +1 -1
  80. package/lib/json-patch.js +1 -1
  81. package/lib/json.js +1 -1
  82. package/lib/license.js +1 -1
  83. package/lib/logger.js +1 -1
  84. package/lib/makefile.js +1 -1
  85. package/lib/object-file.js +1 -1
  86. package/lib/project-build.js +1 -1
  87. package/lib/project-tree.js +1 -1
  88. package/lib/project.js +1 -1
  89. package/lib/projects.js +1 -1
  90. package/lib/projenrc-json.js +2 -2
  91. package/lib/projenrc.js +1 -1
  92. package/lib/python/pip.js +1 -1
  93. package/lib/python/poetry.d.ts +3 -7
  94. package/lib/python/poetry.js +21 -43
  95. package/lib/python/projenrc.js +1 -1
  96. package/lib/python/pytest-sample.js +1 -1
  97. package/lib/python/pytest.js +1 -1
  98. package/lib/python/python-project.js +1 -1
  99. package/lib/python/python-sample.js +1 -1
  100. package/lib/python/requirements-file.js +1 -1
  101. package/lib/python/setuppy.js +1 -1
  102. package/lib/python/setuptools.js +1 -1
  103. package/lib/python/venv.js +1 -1
  104. package/lib/readme.js +1 -1
  105. package/lib/release/publisher.js +1 -1
  106. package/lib/release/release-trigger.js +1 -1
  107. package/lib/release/release.js +1 -1
  108. package/lib/renovatebot.js +1 -1
  109. package/lib/sample-file.js +2 -2
  110. package/lib/semver.js +1 -1
  111. package/lib/source-code.js +1 -1
  112. package/lib/task-runtime.js +1 -1
  113. package/lib/task.js +1 -1
  114. package/lib/tasks.js +1 -1
  115. package/lib/testing.js +1 -1
  116. package/lib/textfile.js +1 -1
  117. package/lib/toml.js +8 -10
  118. package/lib/typescript/projenrc-ts.js +1 -1
  119. package/lib/typescript/projenrc.js +1 -1
  120. package/lib/typescript/typescript-typedoc.js +1 -1
  121. package/lib/typescript/typescript.js +6 -6
  122. package/lib/version.js +2 -2
  123. package/lib/vscode/devcontainer.js +1 -1
  124. package/lib/vscode/extensions.js +1 -1
  125. package/lib/vscode/launch-config.js +1 -1
  126. package/lib/vscode/settings.js +1 -1
  127. package/lib/vscode/vscode.js +1 -1
  128. package/lib/web/next.js +3 -3
  129. package/lib/web/postcss.js +1 -1
  130. package/lib/web/react.js +4 -4
  131. package/lib/web/tailwind.js +1 -1
  132. package/lib/xmlfile.js +1 -1
  133. package/lib/yaml.js +1 -1
  134. package/node_modules/@iarna/toml/LICENSE +14 -0
  135. package/node_modules/@iarna/toml/README.md +301 -0
  136. package/node_modules/@iarna/toml/index.d.ts +57 -0
  137. package/node_modules/@iarna/toml/lib/create-date.js +23 -0
  138. package/node_modules/@iarna/toml/lib/create-datetime-float.js +24 -0
  139. package/node_modules/@iarna/toml/lib/create-datetime.js +10 -0
  140. package/node_modules/@iarna/toml/lib/create-time.js +22 -0
  141. package/node_modules/@iarna/toml/lib/format-num.js +6 -0
  142. package/node_modules/@iarna/toml/lib/parser-debug.js +60 -0
  143. package/node_modules/@iarna/toml/lib/parser.js +127 -0
  144. package/node_modules/@iarna/toml/lib/toml-parser.js +1379 -0
  145. package/node_modules/@iarna/toml/package.json +82 -0
  146. package/node_modules/@iarna/toml/parse-async.js +30 -0
  147. package/node_modules/@iarna/toml/parse-pretty-error.js +33 -0
  148. package/node_modules/@iarna/toml/parse-stream.js +80 -0
  149. package/node_modules/@iarna/toml/parse-string.js +18 -0
  150. package/node_modules/@iarna/toml/parse.js +5 -0
  151. package/node_modules/@iarna/toml/stringify.js +296 -0
  152. package/node_modules/@iarna/toml/toml.js +3 -0
  153. package/node_modules/yaml/browser/dist/parse/parser.js +4 -1
  154. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +19 -10
  155. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +5 -12
  156. package/node_modules/yaml/dist/parse/parser.js +4 -1
  157. package/node_modules/yaml/dist/stringify/foldFlowLines.js +19 -10
  158. package/node_modules/yaml/dist/stringify/stringifyCollection.js +5 -12
  159. package/node_modules/yaml/package.json +1 -1
  160. package/package.json +8 -8
  161. package/node_modules/json2toml/CHANGELOG.md +0 -128
  162. package/node_modules/json2toml/LICENSE.txt +0 -18
  163. package/node_modules/json2toml/README.md +0 -52
  164. package/node_modules/json2toml/index.d.ts +0 -13
  165. package/node_modules/json2toml/index.js +0 -160
  166. package/node_modules/json2toml/package.json +0 -62
  167. package/node_modules/lodash.isdate/LICENSE +0 -47
  168. package/node_modules/lodash.isdate/README.md +0 -18
  169. package/node_modules/lodash.isdate/index.js +0 -119
  170. package/node_modules/lodash.isdate/package.json +0 -17
  171. package/node_modules/lodash.isempty/LICENSE +0 -47
  172. package/node_modules/lodash.isempty/README.md +0 -18
  173. package/node_modules/lodash.isempty/index.js +0 -582
  174. package/node_modules/lodash.isempty/package.json +0 -17
  175. package/node_modules/lodash.isplainobject/LICENSE +0 -47
  176. package/node_modules/lodash.isplainobject/README.md +0 -18
  177. package/node_modules/lodash.isplainobject/index.js +0 -139
  178. package/node_modules/lodash.isplainobject/package.json +0 -17
  179. package/node_modules/strftime/Changelog.md +0 -286
  180. package/node_modules/strftime/Makefile +0 -15
  181. package/node_modules/strftime/Readme.md +0 -208
  182. package/node_modules/strftime/bower.json +0 -13
  183. package/node_modules/strftime/component.json +0 -16
  184. package/node_modules/strftime/package.json +0 -53
  185. package/node_modules/strftime/strftime-min.js +0 -21
  186. package/node_modules/strftime/strftime.js +0 -854
  187. package/node_modules/strftime/test.js +0 -271
@@ -1,582 +0,0 @@
1
- /**
2
- * lodash (Custom Build) <https://lodash.com/>
3
- * Build: `lodash modularize exports="npm" -o ./`
4
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
5
- * Released under MIT license <https://lodash.com/license>
6
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */
9
-
10
- /** Used as references for various `Number` constants. */
11
- var MAX_SAFE_INTEGER = 9007199254740991;
12
-
13
- /** `Object#toString` result references. */
14
- var argsTag = '[object Arguments]',
15
- funcTag = '[object Function]',
16
- genTag = '[object GeneratorFunction]',
17
- mapTag = '[object Map]',
18
- objectTag = '[object Object]',
19
- promiseTag = '[object Promise]',
20
- setTag = '[object Set]',
21
- weakMapTag = '[object WeakMap]';
22
-
23
- var dataViewTag = '[object DataView]';
24
-
25
- /**
26
- * Used to match `RegExp`
27
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
28
- */
29
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
30
-
31
- /** Used to detect host constructors (Safari). */
32
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
33
-
34
- /** Detect free variable `global` from Node.js. */
35
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
36
-
37
- /** Detect free variable `self`. */
38
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
39
-
40
- /** Used as a reference to the global object. */
41
- var root = freeGlobal || freeSelf || Function('return this')();
42
-
43
- /** Detect free variable `exports`. */
44
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
45
-
46
- /** Detect free variable `module`. */
47
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
48
-
49
- /** Detect the popular CommonJS extension `module.exports`. */
50
- var moduleExports = freeModule && freeModule.exports === freeExports;
51
-
52
- /**
53
- * Gets the value at `key` of `object`.
54
- *
55
- * @private
56
- * @param {Object} [object] The object to query.
57
- * @param {string} key The key of the property to get.
58
- * @returns {*} Returns the property value.
59
- */
60
- function getValue(object, key) {
61
- return object == null ? undefined : object[key];
62
- }
63
-
64
- /**
65
- * Checks if `value` is a host object in IE < 9.
66
- *
67
- * @private
68
- * @param {*} value The value to check.
69
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
70
- */
71
- function isHostObject(value) {
72
- // Many host objects are `Object` objects that can coerce to strings
73
- // despite having improperly defined `toString` methods.
74
- var result = false;
75
- if (value != null && typeof value.toString != 'function') {
76
- try {
77
- result = !!(value + '');
78
- } catch (e) {}
79
- }
80
- return result;
81
- }
82
-
83
- /**
84
- * Creates a unary function that invokes `func` with its argument transformed.
85
- *
86
- * @private
87
- * @param {Function} func The function to wrap.
88
- * @param {Function} transform The argument transform.
89
- * @returns {Function} Returns the new function.
90
- */
91
- function overArg(func, transform) {
92
- return function(arg) {
93
- return func(transform(arg));
94
- };
95
- }
96
-
97
- /** Used for built-in method references. */
98
- var funcProto = Function.prototype,
99
- objectProto = Object.prototype;
100
-
101
- /** Used to detect overreaching core-js shims. */
102
- var coreJsData = root['__core-js_shared__'];
103
-
104
- /** Used to detect methods masquerading as native. */
105
- var maskSrcKey = (function() {
106
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
107
- return uid ? ('Symbol(src)_1.' + uid) : '';
108
- }());
109
-
110
- /** Used to resolve the decompiled source of functions. */
111
- var funcToString = funcProto.toString;
112
-
113
- /** Used to check objects for own properties. */
114
- var hasOwnProperty = objectProto.hasOwnProperty;
115
-
116
- /**
117
- * Used to resolve the
118
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
119
- * of values.
120
- */
121
- var objectToString = objectProto.toString;
122
-
123
- /** Used to detect if a method is native. */
124
- var reIsNative = RegExp('^' +
125
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
126
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
127
- );
128
-
129
- /** Built-in value references. */
130
- var Buffer = moduleExports ? root.Buffer : undefined,
131
- propertyIsEnumerable = objectProto.propertyIsEnumerable;
132
-
133
- /* Built-in method references for those with the same name as other `lodash` methods. */
134
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
135
- nativeKeys = overArg(Object.keys, Object);
136
-
137
- /* Built-in method references that are verified to be native. */
138
- var DataView = getNative(root, 'DataView'),
139
- Map = getNative(root, 'Map'),
140
- Promise = getNative(root, 'Promise'),
141
- Set = getNative(root, 'Set'),
142
- WeakMap = getNative(root, 'WeakMap');
143
-
144
- /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
145
- var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
146
-
147
- /** Used to detect maps, sets, and weakmaps. */
148
- var dataViewCtorString = toSource(DataView),
149
- mapCtorString = toSource(Map),
150
- promiseCtorString = toSource(Promise),
151
- setCtorString = toSource(Set),
152
- weakMapCtorString = toSource(WeakMap);
153
-
154
- /**
155
- * The base implementation of `getTag`.
156
- *
157
- * @private
158
- * @param {*} value The value to query.
159
- * @returns {string} Returns the `toStringTag`.
160
- */
161
- function baseGetTag(value) {
162
- return objectToString.call(value);
163
- }
164
-
165
- /**
166
- * The base implementation of `_.isNative` without bad shim checks.
167
- *
168
- * @private
169
- * @param {*} value The value to check.
170
- * @returns {boolean} Returns `true` if `value` is a native function,
171
- * else `false`.
172
- */
173
- function baseIsNative(value) {
174
- if (!isObject(value) || isMasked(value)) {
175
- return false;
176
- }
177
- var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
178
- return pattern.test(toSource(value));
179
- }
180
-
181
- /**
182
- * Gets the native function at `key` of `object`.
183
- *
184
- * @private
185
- * @param {Object} object The object to query.
186
- * @param {string} key The key of the method to get.
187
- * @returns {*} Returns the function if it's native, else `undefined`.
188
- */
189
- function getNative(object, key) {
190
- var value = getValue(object, key);
191
- return baseIsNative(value) ? value : undefined;
192
- }
193
-
194
- /**
195
- * Gets the `toStringTag` of `value`.
196
- *
197
- * @private
198
- * @param {*} value The value to query.
199
- * @returns {string} Returns the `toStringTag`.
200
- */
201
- var getTag = baseGetTag;
202
-
203
- // Fallback for data views, maps, sets, and weak maps in IE 11,
204
- // for data views in Edge < 14, and promises in Node.js.
205
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
206
- (Map && getTag(new Map) != mapTag) ||
207
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
208
- (Set && getTag(new Set) != setTag) ||
209
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
210
- getTag = function(value) {
211
- var result = objectToString.call(value),
212
- Ctor = result == objectTag ? value.constructor : undefined,
213
- ctorString = Ctor ? toSource(Ctor) : undefined;
214
-
215
- if (ctorString) {
216
- switch (ctorString) {
217
- case dataViewCtorString: return dataViewTag;
218
- case mapCtorString: return mapTag;
219
- case promiseCtorString: return promiseTag;
220
- case setCtorString: return setTag;
221
- case weakMapCtorString: return weakMapTag;
222
- }
223
- }
224
- return result;
225
- };
226
- }
227
-
228
- /**
229
- * Checks if `func` has its source masked.
230
- *
231
- * @private
232
- * @param {Function} func The function to check.
233
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
234
- */
235
- function isMasked(func) {
236
- return !!maskSrcKey && (maskSrcKey in func);
237
- }
238
-
239
- /**
240
- * Checks if `value` is likely a prototype object.
241
- *
242
- * @private
243
- * @param {*} value The value to check.
244
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
245
- */
246
- function isPrototype(value) {
247
- var Ctor = value && value.constructor,
248
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
249
-
250
- return value === proto;
251
- }
252
-
253
- /**
254
- * Converts `func` to its source code.
255
- *
256
- * @private
257
- * @param {Function} func The function to process.
258
- * @returns {string} Returns the source code.
259
- */
260
- function toSource(func) {
261
- if (func != null) {
262
- try {
263
- return funcToString.call(func);
264
- } catch (e) {}
265
- try {
266
- return (func + '');
267
- } catch (e) {}
268
- }
269
- return '';
270
- }
271
-
272
- /**
273
- * Checks if `value` is likely an `arguments` object.
274
- *
275
- * @static
276
- * @memberOf _
277
- * @since 0.1.0
278
- * @category Lang
279
- * @param {*} value The value to check.
280
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
281
- * else `false`.
282
- * @example
283
- *
284
- * _.isArguments(function() { return arguments; }());
285
- * // => true
286
- *
287
- * _.isArguments([1, 2, 3]);
288
- * // => false
289
- */
290
- function isArguments(value) {
291
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
292
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
293
- (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
294
- }
295
-
296
- /**
297
- * Checks if `value` is classified as an `Array` object.
298
- *
299
- * @static
300
- * @memberOf _
301
- * @since 0.1.0
302
- * @category Lang
303
- * @param {*} value The value to check.
304
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
305
- * @example
306
- *
307
- * _.isArray([1, 2, 3]);
308
- * // => true
309
- *
310
- * _.isArray(document.body.children);
311
- * // => false
312
- *
313
- * _.isArray('abc');
314
- * // => false
315
- *
316
- * _.isArray(_.noop);
317
- * // => false
318
- */
319
- var isArray = Array.isArray;
320
-
321
- /**
322
- * Checks if `value` is array-like. A value is considered array-like if it's
323
- * not a function and has a `value.length` that's an integer greater than or
324
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
325
- *
326
- * @static
327
- * @memberOf _
328
- * @since 4.0.0
329
- * @category Lang
330
- * @param {*} value The value to check.
331
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
332
- * @example
333
- *
334
- * _.isArrayLike([1, 2, 3]);
335
- * // => true
336
- *
337
- * _.isArrayLike(document.body.children);
338
- * // => true
339
- *
340
- * _.isArrayLike('abc');
341
- * // => true
342
- *
343
- * _.isArrayLike(_.noop);
344
- * // => false
345
- */
346
- function isArrayLike(value) {
347
- return value != null && isLength(value.length) && !isFunction(value);
348
- }
349
-
350
- /**
351
- * This method is like `_.isArrayLike` except that it also checks if `value`
352
- * is an object.
353
- *
354
- * @static
355
- * @memberOf _
356
- * @since 4.0.0
357
- * @category Lang
358
- * @param {*} value The value to check.
359
- * @returns {boolean} Returns `true` if `value` is an array-like object,
360
- * else `false`.
361
- * @example
362
- *
363
- * _.isArrayLikeObject([1, 2, 3]);
364
- * // => true
365
- *
366
- * _.isArrayLikeObject(document.body.children);
367
- * // => true
368
- *
369
- * _.isArrayLikeObject('abc');
370
- * // => false
371
- *
372
- * _.isArrayLikeObject(_.noop);
373
- * // => false
374
- */
375
- function isArrayLikeObject(value) {
376
- return isObjectLike(value) && isArrayLike(value);
377
- }
378
-
379
- /**
380
- * Checks if `value` is a buffer.
381
- *
382
- * @static
383
- * @memberOf _
384
- * @since 4.3.0
385
- * @category Lang
386
- * @param {*} value The value to check.
387
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
388
- * @example
389
- *
390
- * _.isBuffer(new Buffer(2));
391
- * // => true
392
- *
393
- * _.isBuffer(new Uint8Array(2));
394
- * // => false
395
- */
396
- var isBuffer = nativeIsBuffer || stubFalse;
397
-
398
- /**
399
- * Checks if `value` is an empty object, collection, map, or set.
400
- *
401
- * Objects are considered empty if they have no own enumerable string keyed
402
- * properties.
403
- *
404
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
405
- * jQuery-like collections are considered empty if they have a `length` of `0`.
406
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
407
- *
408
- * @static
409
- * @memberOf _
410
- * @since 0.1.0
411
- * @category Lang
412
- * @param {*} value The value to check.
413
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
414
- * @example
415
- *
416
- * _.isEmpty(null);
417
- * // => true
418
- *
419
- * _.isEmpty(true);
420
- * // => true
421
- *
422
- * _.isEmpty(1);
423
- * // => true
424
- *
425
- * _.isEmpty([1, 2, 3]);
426
- * // => false
427
- *
428
- * _.isEmpty({ 'a': 1 });
429
- * // => false
430
- */
431
- function isEmpty(value) {
432
- if (isArrayLike(value) &&
433
- (isArray(value) || typeof value == 'string' ||
434
- typeof value.splice == 'function' || isBuffer(value) || isArguments(value))) {
435
- return !value.length;
436
- }
437
- var tag = getTag(value);
438
- if (tag == mapTag || tag == setTag) {
439
- return !value.size;
440
- }
441
- if (nonEnumShadows || isPrototype(value)) {
442
- return !nativeKeys(value).length;
443
- }
444
- for (var key in value) {
445
- if (hasOwnProperty.call(value, key)) {
446
- return false;
447
- }
448
- }
449
- return true;
450
- }
451
-
452
- /**
453
- * Checks if `value` is classified as a `Function` object.
454
- *
455
- * @static
456
- * @memberOf _
457
- * @since 0.1.0
458
- * @category Lang
459
- * @param {*} value The value to check.
460
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
461
- * @example
462
- *
463
- * _.isFunction(_);
464
- * // => true
465
- *
466
- * _.isFunction(/abc/);
467
- * // => false
468
- */
469
- function isFunction(value) {
470
- // The use of `Object#toString` avoids issues with the `typeof` operator
471
- // in Safari 8-9 which returns 'object' for typed array and other constructors.
472
- var tag = isObject(value) ? objectToString.call(value) : '';
473
- return tag == funcTag || tag == genTag;
474
- }
475
-
476
- /**
477
- * Checks if `value` is a valid array-like length.
478
- *
479
- * **Note:** This method is loosely based on
480
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
481
- *
482
- * @static
483
- * @memberOf _
484
- * @since 4.0.0
485
- * @category Lang
486
- * @param {*} value The value to check.
487
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
488
- * @example
489
- *
490
- * _.isLength(3);
491
- * // => true
492
- *
493
- * _.isLength(Number.MIN_VALUE);
494
- * // => false
495
- *
496
- * _.isLength(Infinity);
497
- * // => false
498
- *
499
- * _.isLength('3');
500
- * // => false
501
- */
502
- function isLength(value) {
503
- return typeof value == 'number' &&
504
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
505
- }
506
-
507
- /**
508
- * Checks if `value` is the
509
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
510
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
511
- *
512
- * @static
513
- * @memberOf _
514
- * @since 0.1.0
515
- * @category Lang
516
- * @param {*} value The value to check.
517
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
518
- * @example
519
- *
520
- * _.isObject({});
521
- * // => true
522
- *
523
- * _.isObject([1, 2, 3]);
524
- * // => true
525
- *
526
- * _.isObject(_.noop);
527
- * // => true
528
- *
529
- * _.isObject(null);
530
- * // => false
531
- */
532
- function isObject(value) {
533
- var type = typeof value;
534
- return !!value && (type == 'object' || type == 'function');
535
- }
536
-
537
- /**
538
- * Checks if `value` is object-like. A value is object-like if it's not `null`
539
- * and has a `typeof` result of "object".
540
- *
541
- * @static
542
- * @memberOf _
543
- * @since 4.0.0
544
- * @category Lang
545
- * @param {*} value The value to check.
546
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
547
- * @example
548
- *
549
- * _.isObjectLike({});
550
- * // => true
551
- *
552
- * _.isObjectLike([1, 2, 3]);
553
- * // => true
554
- *
555
- * _.isObjectLike(_.noop);
556
- * // => false
557
- *
558
- * _.isObjectLike(null);
559
- * // => false
560
- */
561
- function isObjectLike(value) {
562
- return !!value && typeof value == 'object';
563
- }
564
-
565
- /**
566
- * This method returns `false`.
567
- *
568
- * @static
569
- * @memberOf _
570
- * @since 4.13.0
571
- * @category Util
572
- * @returns {boolean} Returns `false`.
573
- * @example
574
- *
575
- * _.times(2, _.stubFalse);
576
- * // => [false, false]
577
- */
578
- function stubFalse() {
579
- return false;
580
- }
581
-
582
- module.exports = isEmpty;
@@ -1,17 +0,0 @@
1
- {
2
- "name": "lodash.isempty",
3
- "version": "4.4.0",
4
- "description": "The lodash method `_.isEmpty` exported as a module.",
5
- "homepage": "https://lodash.com/",
6
- "icon": "https://lodash.com/icon.svg",
7
- "license": "MIT",
8
- "keywords": "lodash-modularized, isempty",
9
- "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
10
- "contributors": [
11
- "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
12
- "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
13
- "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
14
- ],
15
- "repository": "lodash/lodash",
16
- "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
17
- }
@@ -1,47 +0,0 @@
1
- Copyright jQuery Foundation and other contributors <https://jquery.org/>
2
-
3
- Based on Underscore.js, copyright Jeremy Ashkenas,
4
- DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
5
-
6
- This software consists of voluntary contributions made by many
7
- individuals. For exact contribution history, see the revision history
8
- available at https://github.com/lodash/lodash
9
-
10
- The following license applies to all parts of this software except as
11
- documented below:
12
-
13
- ====
14
-
15
- Permission is hereby granted, free of charge, to any person obtaining
16
- a copy of this software and associated documentation files (the
17
- "Software"), to deal in the Software without restriction, including
18
- without limitation the rights to use, copy, modify, merge, publish,
19
- distribute, sublicense, and/or sell copies of the Software, and to
20
- permit persons to whom the Software is furnished to do so, subject to
21
- the following conditions:
22
-
23
- The above copyright notice and this permission notice shall be
24
- included in all copies or substantial portions of the Software.
25
-
26
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
-
34
- ====
35
-
36
- Copyright and related rights for sample code are waived via CC0. Sample
37
- code is defined as all source code displayed within the prose of the
38
- documentation.
39
-
40
- CC0: http://creativecommons.org/publicdomain/zero/1.0/
41
-
42
- ====
43
-
44
- Files located in the node_modules and vendor directories are externally
45
- maintained libraries used by this software which have their own
46
- licenses; we recommend you read them, as their terms may differ from the
47
- terms above.
@@ -1,18 +0,0 @@
1
- # lodash.isplainobject v4.0.6
2
-
3
- The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module.
4
-
5
- ## Installation
6
-
7
- Using npm:
8
- ```bash
9
- $ {sudo -H} npm i -g npm
10
- $ npm i --save lodash.isplainobject
11
- ```
12
-
13
- In Node.js:
14
- ```js
15
- var isPlainObject = require('lodash.isplainobject');
16
- ```
17
-
18
- See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.isplainobject) for more details.