nitro-graphql 1.2.3 → 1.3.0

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 (150) hide show
  1. package/README.md +161 -3
  2. package/dist/graphql/index.js +1 -0
  3. package/dist/graphql/server.js +1 -0
  4. package/dist/index.d.ts +2 -2
  5. package/dist/index.js +11 -3
  6. package/dist/rollup.js +24 -0
  7. package/dist/routes/apollo-server.d.ts +2 -2
  8. package/dist/routes/apollo-server.js +16 -7
  9. package/dist/routes/graphql-yoga.js +14 -4
  10. package/dist/routes/health.d.ts +2 -2
  11. package/dist/types/index.d.ts +2 -1
  12. package/dist/utils/client-codegen.js +1 -1
  13. package/dist/utils/define.d.ts +52 -1
  14. package/dist/utils/define.js +33 -1
  15. package/dist/utils/directive-parser.d.ts +80 -0
  16. package/dist/utils/directive-parser.js +235 -0
  17. package/dist/utils/index.d.ts +3 -2
  18. package/dist/utils/index.js +42 -4
  19. package/dist/utils/type-generation.js +103 -6
  20. package/package.json +29 -18
  21. package/dist/_virtual/rolldown_runtime.js +0 -37
  22. package/dist/node_modules/.pnpm/@graphql-codegen_add@3.2.3_graphql@16.11.0/node_modules/@graphql-codegen/add/esm/config.js +0 -9
  23. package/dist/node_modules/.pnpm/@graphql-codegen_add@3.2.3_graphql@16.11.0/node_modules/@graphql-codegen/add/esm/index.js +0 -17
  24. package/dist/node_modules/.pnpm/@graphql-codegen_import-types-preset@3.0.1_graphql@16.11.0/node_modules/@graphql-codegen/import-types-preset/esm/index.js +0 -38
  25. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/federation.js +0 -22
  26. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/getCachedDocumentNodeFromSchema.js +0 -6
  27. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/helpers.js +0 -79
  28. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/index.js +0 -6
  29. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/oldVisit.js +0 -1
  30. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/resolve-external-module-and-fn.js +0 -7
  31. package/dist/node_modules/.pnpm/@graphql-codegen_plugin-helpers@3.1.2_graphql@16.11.0/node_modules/@graphql-codegen/plugin-helpers/esm/utils.js +0 -13
  32. package/dist/node_modules/.pnpm/camel-case@4.1.2/node_modules/camel-case/dist/index.js +0 -33
  33. package/dist/node_modules/.pnpm/capital-case@1.0.4/node_modules/capital-case/dist/index.js +0 -32
  34. package/dist/node_modules/.pnpm/change-case-all@1.0.15/node_modules/change-case-all/dist/index.js +0 -56
  35. package/dist/node_modules/.pnpm/change-case@4.1.2/node_modules/change-case/dist/index.js +0 -37
  36. package/dist/node_modules/.pnpm/constant-case@3.0.4/node_modules/constant-case/dist/index.js +0 -28
  37. package/dist/node_modules/.pnpm/dot-case@3.0.4/node_modules/dot-case/dist/index.js +0 -23
  38. package/dist/node_modules/.pnpm/header-case@2.0.4/node_modules/header-case/dist/index.js +0 -23
  39. package/dist/node_modules/.pnpm/is-lower-case@2.0.2/node_modules/is-lower-case/dist/index.js +0 -21
  40. package/dist/node_modules/.pnpm/is-upper-case@2.0.2/node_modules/is-upper-case/dist/index.js +0 -21
  41. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -37
  42. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -37
  43. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +0 -15
  44. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -37
  45. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js +0 -34
  46. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -15
  47. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js +0 -15
  48. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js +0 -30
  49. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js +0 -35
  50. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js +0 -26
  51. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js +0 -32
  52. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -26
  53. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js +0 -31
  54. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js +0 -34
  55. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js +0 -25
  56. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -30
  57. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js +0 -26
  58. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -44
  59. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js +0 -32
  60. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js +0 -32
  61. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js +0 -42
  62. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js +0 -75
  63. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js +0 -26
  64. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js +0 -31
  65. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js +0 -25
  66. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js +0 -23
  67. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js +0 -25
  68. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js +0 -35
  69. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js +0 -25
  70. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js +0 -25
  71. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js +0 -37
  72. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -15
  73. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js +0 -37
  74. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js +0 -28
  75. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js +0 -20
  76. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -13
  77. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -25
  78. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -26
  79. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js +0 -15
  80. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -43
  81. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -22
  82. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -24
  83. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -26
  84. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -36
  85. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -30
  86. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -31
  87. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js +0 -25
  88. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +0 -28
  89. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js +0 -32
  90. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -22
  91. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -28
  92. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js +0 -24
  93. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -22
  94. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -35
  95. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -26
  96. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -25
  97. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -31
  98. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -30
  99. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -27
  100. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -25
  101. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -25
  102. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -29
  103. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -14
  104. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js +0 -25
  105. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js +0 -29
  106. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -29
  107. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js +0 -24
  108. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js +0 -35
  109. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +0 -17
  110. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js +0 -24
  111. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js +0 -23
  112. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js +0 -34
  113. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js +0 -24
  114. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js +0 -25
  115. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js +0 -23
  116. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js +0 -23
  117. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js +0 -42
  118. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -33
  119. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js +0 -35
  120. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +0 -46
  121. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js +0 -30
  122. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js +0 -43
  123. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +0 -35
  124. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js +0 -42
  125. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js +0 -42
  126. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js +0 -41
  127. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -38
  128. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js +0 -42
  129. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +0 -40
  130. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +0 -38
  131. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js +0 -60
  132. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js +0 -34
  133. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js +0 -41
  134. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js +0 -48
  135. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js +0 -27
  136. package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js +0 -41
  137. package/dist/node_modules/.pnpm/lower-case-first@2.0.2/node_modules/lower-case-first/dist/index.js +0 -21
  138. package/dist/node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist/index.js +0 -64
  139. package/dist/node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist/index.js +0 -41
  140. package/dist/node_modules/.pnpm/param-case@3.0.4/node_modules/param-case/dist/index.js +0 -23
  141. package/dist/node_modules/.pnpm/pascal-case@3.1.2/node_modules/pascal-case/dist/index.js +0 -37
  142. package/dist/node_modules/.pnpm/path-case@3.0.4/node_modules/path-case/dist/index.js +0 -23
  143. package/dist/node_modules/.pnpm/sentence-case@3.0.4/node_modules/sentence-case/dist/index.js +0 -34
  144. package/dist/node_modules/.pnpm/snake-case@3.0.4/node_modules/snake-case/dist/index.js +0 -23
  145. package/dist/node_modules/.pnpm/sponge-case@1.0.1/node_modules/sponge-case/dist/index.js +0 -20
  146. package/dist/node_modules/.pnpm/swap-case@2.0.2/node_modules/swap-case/dist/index.js +0 -23
  147. package/dist/node_modules/.pnpm/title-case@3.0.3/node_modules/title-case/dist/index.js +0 -35
  148. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -547
  149. package/dist/node_modules/.pnpm/upper-case-first@2.0.2/node_modules/upper-case-first/dist/index.js +0 -21
  150. package/dist/node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js +0 -56
@@ -1,60 +0,0 @@
1
- import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
2
- import { require__baseGetTag } from "./_baseGetTag.js";
3
- import { require__getPrototype } from "./_getPrototype.js";
4
- import { require_isObjectLike } from "./isObjectLike.js";
5
-
6
- //#region node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js
7
- var require_isPlainObject = __commonJS({ "node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(exports, module) {
8
- var baseGetTag = require__baseGetTag(), getPrototype = require__getPrototype(), isObjectLike = require_isObjectLike();
9
- /** `Object#toString` result references. */
10
- var objectTag = "[object Object]";
11
- /** Used for built-in method references. */
12
- var funcProto = Function.prototype, objectProto = Object.prototype;
13
- /** Used to resolve the decompiled source of functions. */
14
- var funcToString = funcProto.toString;
15
- /** Used to check objects for own properties. */
16
- var hasOwnProperty = objectProto.hasOwnProperty;
17
- /** Used to infer the `Object` constructor. */
18
- var objectCtorString = funcToString.call(Object);
19
- /**
20
- * Checks if `value` is a plain object, that is, an object created by the
21
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
22
- *
23
- * @static
24
- * @memberOf _
25
- * @since 0.8.0
26
- * @category Lang
27
- * @param {*} value The value to check.
28
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
29
- * @example
30
- *
31
- * function Foo() {
32
- * this.a = 1;
33
- * }
34
- *
35
- * _.isPlainObject(new Foo);
36
- * // => false
37
- *
38
- * _.isPlainObject([1, 2, 3]);
39
- * // => false
40
- *
41
- * _.isPlainObject({ 'x': 0, 'y': 0 });
42
- * // => true
43
- *
44
- * _.isPlainObject(Object.create(null));
45
- * // => true
46
- */
47
- function isPlainObject(value) {
48
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) return false;
49
- var proto = getPrototype(value);
50
- if (proto === null) return true;
51
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
52
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
53
- }
54
- module.exports = isPlainObject;
55
- } });
56
-
57
- //#endregion
58
- export default require_isPlainObject();
59
-
60
- export { require_isPlainObject };
@@ -1,34 +0,0 @@
1
- import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
2
- import { require__baseIsTypedArray } from "./_baseIsTypedArray.js";
3
- import { require__baseUnary } from "./_baseUnary.js";
4
- import { require__nodeUtil } from "./_nodeUtil.js";
5
-
6
- //#region node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js
7
- var require_isTypedArray = __commonJS({ "node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"(exports, module) {
8
- var baseIsTypedArray = require__baseIsTypedArray(), baseUnary = require__baseUnary(), nodeUtil = require__nodeUtil();
9
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
10
- /**
11
- * Checks if `value` is classified as a typed array.
12
- *
13
- * @static
14
- * @memberOf _
15
- * @since 3.0.0
16
- * @category Lang
17
- * @param {*} value The value to check.
18
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
19
- * @example
20
- *
21
- * _.isTypedArray(new Uint8Array);
22
- * // => true
23
- *
24
- * _.isTypedArray([]);
25
- * // => false
26
- */
27
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
28
- module.exports = isTypedArray;
29
- } });
30
-
31
- //#endregion
32
- export default require_isTypedArray();
33
-
34
- export { require_isTypedArray };
@@ -1,41 +0,0 @@
1
- import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
2
- import { require_isArrayLike } from "./isArrayLike.js";
3
- import { require__arrayLikeKeys } from "./_arrayLikeKeys.js";
4
- import { require__baseKeysIn } from "./_baseKeysIn.js";
5
-
6
- //#region node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
7
- var require_keysIn = __commonJS({ "node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports, module) {
8
- var arrayLikeKeys = require__arrayLikeKeys(), baseKeysIn = require__baseKeysIn(), isArrayLike = require_isArrayLike();
9
- /**
10
- * Creates an array of the own and inherited enumerable property names of `object`.
11
- *
12
- * **Note:** Non-object values are coerced to objects.
13
- *
14
- * @static
15
- * @memberOf _
16
- * @since 3.0.0
17
- * @category Object
18
- * @param {Object} object The object to query.
19
- * @returns {Array} Returns the array of property names.
20
- * @example
21
- *
22
- * function Foo() {
23
- * this.a = 1;
24
- * this.b = 2;
25
- * }
26
- *
27
- * Foo.prototype.c = 3;
28
- *
29
- * _.keysIn(new Foo);
30
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
31
- */
32
- function keysIn(object) {
33
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
34
- }
35
- module.exports = keysIn;
36
- } });
37
-
38
- //#endregion
39
- export default require_keysIn();
40
-
41
- export { require_keysIn };
@@ -1,48 +0,0 @@
1
- import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
2
- import { require__baseMerge } from "./_baseMerge.js";
3
- import { require__createAssigner } from "./_createAssigner.js";
4
-
5
- //#region node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
6
- var require_merge = __commonJS({ "node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports, module) {
7
- var baseMerge = require__baseMerge(), createAssigner = require__createAssigner();
8
- /**
9
- * This method is like `_.assign` except that it recursively merges own and
10
- * inherited enumerable string keyed properties of source objects into the
11
- * destination object. Source properties that resolve to `undefined` are
12
- * skipped if a destination value exists. Array and plain object properties
13
- * are merged recursively. Other objects and value types are overridden by
14
- * assignment. Source objects are applied from left to right. Subsequent
15
- * sources overwrite property assignments of previous sources.
16
- *
17
- * **Note:** This method mutates `object`.
18
- *
19
- * @static
20
- * @memberOf _
21
- * @since 0.5.0
22
- * @category Object
23
- * @param {Object} object The destination object.
24
- * @param {...Object} [sources] The source objects.
25
- * @returns {Object} Returns `object`.
26
- * @example
27
- *
28
- * var object = {
29
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
30
- * };
31
- *
32
- * var other = {
33
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
34
- * };
35
- *
36
- * _.merge(object, other);
37
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
38
- */
39
- var merge = createAssigner(function(object, source, srcIndex) {
40
- baseMerge(object, source, srcIndex);
41
- });
42
- module.exports = merge;
43
- } });
44
-
45
- //#endregion
46
- export default require_merge();
47
-
48
- export { require_merge };
@@ -1,27 +0,0 @@
1
- import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
2
-
3
- //#region node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
4
- var require_stubFalse = __commonJS({ "node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports, module) {
5
- /**
6
- * This method returns `false`.
7
- *
8
- * @static
9
- * @memberOf _
10
- * @since 4.13.0
11
- * @category Util
12
- * @returns {boolean} Returns `false`.
13
- * @example
14
- *
15
- * _.times(2, _.stubFalse);
16
- * // => [false, false]
17
- */
18
- function stubFalse() {
19
- return false;
20
- }
21
- module.exports = stubFalse;
22
- } });
23
-
24
- //#endregion
25
- export default require_stubFalse();
26
-
27
- export { require_stubFalse };
@@ -1,41 +0,0 @@
1
- import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
2
- import { require__copyObject } from "./_copyObject.js";
3
- import { require_keysIn } from "./keysIn.js";
4
-
5
- //#region node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
6
- var require_toPlainObject = __commonJS({ "node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports, module) {
7
- var copyObject = require__copyObject(), keysIn = require_keysIn();
8
- /**
9
- * Converts `value` to a plain object flattening inherited enumerable string
10
- * keyed properties of `value` to own properties of the plain object.
11
- *
12
- * @static
13
- * @memberOf _
14
- * @since 3.0.0
15
- * @category Lang
16
- * @param {*} value The value to convert.
17
- * @returns {Object} Returns the converted plain object.
18
- * @example
19
- *
20
- * function Foo() {
21
- * this.b = 2;
22
- * }
23
- *
24
- * Foo.prototype.c = 3;
25
- *
26
- * _.assign({ 'a': 1 }, new Foo);
27
- * // => { 'a': 1, 'b': 2 }
28
- *
29
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
30
- * // => { 'a': 1, 'b': 2, 'c': 3 }
31
- */
32
- function toPlainObject(value) {
33
- return copyObject(value, keysIn(value));
34
- }
35
- module.exports = toPlainObject;
36
- } });
37
-
38
- //#endregion
39
- export default require_toPlainObject();
40
-
41
- export { require_toPlainObject };
@@ -1,21 +0,0 @@
1
-
2
-
3
- import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
-
5
- //#region node_modules/.pnpm/lower-case-first@2.0.2/node_modules/lower-case-first/dist/index.js
6
- var require_dist = __commonJS({ "node_modules/.pnpm/lower-case-first@2.0.2/node_modules/lower-case-first/dist/index.js"(exports) {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.lowerCaseFirst = void 0;
9
- /**
10
- * Lower case the first character of an input string.
11
- */
12
- function lowerCaseFirst(input) {
13
- return input.charAt(0).toLowerCase() + input.substr(1);
14
- }
15
- exports.lowerCaseFirst = lowerCaseFirst;
16
- } });
17
-
18
- //#endregion
19
- export default require_dist();
20
-
21
- export { require_dist };
@@ -1,64 +0,0 @@
1
-
2
-
3
- import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
-
5
- //#region node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist/index.js
6
- var require_dist = __commonJS({ "node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist/index.js"(exports) {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.lowerCase = exports.localeLowerCase = void 0;
9
- /**
10
- * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
11
- */
12
- var SUPPORTED_LOCALE = {
13
- tr: {
14
- regexp: /\u0130|\u0049|\u0049\u0307/g,
15
- map: {
16
- İ: "i",
17
- I: "ı",
18
- İ: "i"
19
- }
20
- },
21
- az: {
22
- regexp: /\u0130/g,
23
- map: {
24
- İ: "i",
25
- I: "ı",
26
- İ: "i"
27
- }
28
- },
29
- lt: {
30
- regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
31
- map: {
32
- I: "i̇",
33
- J: "j̇",
34
- Į: "į̇",
35
- Ì: "i̇̀",
36
- Í: "i̇́",
37
- Ĩ: "i̇̃"
38
- }
39
- }
40
- };
41
- /**
42
- * Localized lower case.
43
- */
44
- function localeLowerCase(str, locale) {
45
- var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
46
- if (lang) return lowerCase(str.replace(lang.regexp, function(m) {
47
- return lang.map[m];
48
- }));
49
- return lowerCase(str);
50
- }
51
- exports.localeLowerCase = localeLowerCase;
52
- /**
53
- * Lower case as a function.
54
- */
55
- function lowerCase(str) {
56
- return str.toLowerCase();
57
- }
58
- exports.lowerCase = lowerCase;
59
- } });
60
-
61
- //#endregion
62
- export default require_dist();
63
-
64
- export { require_dist };
@@ -1,41 +0,0 @@
1
-
2
-
3
- import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
- import { require_dist } from "../../../../lower-case@2.0.2/node_modules/lower-case/dist/index.js";
5
-
6
- //#region node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist/index.js
7
- var require_dist$1 = __commonJS({ "node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist/index.js"(exports) {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.noCase = void 0;
10
- var lower_case_1 = require_dist();
11
- var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
12
- var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
13
- /**
14
- * Normalize the string into something other libraries can manipulate easier.
15
- */
16
- function noCase(input, options) {
17
- if (options === void 0) options = {};
18
- var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case_1.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
19
- var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
20
- var start = 0;
21
- var end = result.length;
22
- while (result.charAt(start) === "\0") start++;
23
- while (result.charAt(end - 1) === "\0") end--;
24
- return result.slice(start, end).split("\0").map(transform).join(delimiter);
25
- }
26
- exports.noCase = noCase;
27
- /**
28
- * Replace `re` in the input string with the replacement value.
29
- */
30
- function replace(input, re, value) {
31
- if (re instanceof RegExp) return input.replace(re, value);
32
- return re.reduce(function(input$1, re$1) {
33
- return input$1.replace(re$1, value);
34
- }, input);
35
- }
36
- } });
37
-
38
- //#endregion
39
- export default require_dist$1();
40
-
41
- export { require_dist$1 as require_dist };
@@ -1,23 +0,0 @@
1
-
2
-
3
- import { __commonJS, __toCommonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
- import { init_tslib_es6, tslib_es6_exports } from "../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
5
- import { require_dist } from "../../../../dot-case@3.0.4/node_modules/dot-case/dist/index.js";
6
-
7
- //#region node_modules/.pnpm/param-case@3.0.4/node_modules/param-case/dist/index.js
8
- var require_dist$1 = __commonJS({ "node_modules/.pnpm/param-case@3.0.4/node_modules/param-case/dist/index.js"(exports) {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.paramCase = void 0;
11
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
12
- var dot_case_1 = require_dist();
13
- function paramCase(input, options) {
14
- if (options === void 0) options = {};
15
- return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "-" }, options));
16
- }
17
- exports.paramCase = paramCase;
18
- } });
19
-
20
- //#endregion
21
- export default require_dist$1();
22
-
23
- export { require_dist$1 as require_dist };
@@ -1,37 +0,0 @@
1
-
2
-
3
- import { __commonJS, __toCommonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
- import { init_tslib_es6, tslib_es6_exports } from "../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
5
- import { require_dist } from "../../../../no-case@3.0.4/node_modules/no-case/dist/index.js";
6
-
7
- //#region node_modules/.pnpm/pascal-case@3.1.2/node_modules/pascal-case/dist/index.js
8
- var require_dist$1 = __commonJS({ "node_modules/.pnpm/pascal-case@3.1.2/node_modules/pascal-case/dist/index.js"(exports) {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.pascalCase = exports.pascalCaseTransformMerge = exports.pascalCaseTransform = void 0;
11
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
12
- var no_case_1 = require_dist();
13
- function pascalCaseTransform(input, index) {
14
- var firstChar = input.charAt(0);
15
- var lowerChars = input.substr(1).toLowerCase();
16
- if (index > 0 && firstChar >= "0" && firstChar <= "9") return "_" + firstChar + lowerChars;
17
- return "" + firstChar.toUpperCase() + lowerChars;
18
- }
19
- exports.pascalCaseTransform = pascalCaseTransform;
20
- function pascalCaseTransformMerge(input) {
21
- return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();
22
- }
23
- exports.pascalCaseTransformMerge = pascalCaseTransformMerge;
24
- function pascalCase(input, options) {
25
- if (options === void 0) options = {};
26
- return no_case_1.noCase(input, tslib_1.__assign({
27
- delimiter: "",
28
- transform: pascalCaseTransform
29
- }, options));
30
- }
31
- exports.pascalCase = pascalCase;
32
- } });
33
-
34
- //#endregion
35
- export default require_dist$1();
36
-
37
- export { require_dist$1 as require_dist };
@@ -1,23 +0,0 @@
1
-
2
-
3
- import { __commonJS, __toCommonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
- import { init_tslib_es6, tslib_es6_exports } from "../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
5
- import { require_dist } from "../../../../dot-case@3.0.4/node_modules/dot-case/dist/index.js";
6
-
7
- //#region node_modules/.pnpm/path-case@3.0.4/node_modules/path-case/dist/index.js
8
- var require_dist$1 = __commonJS({ "node_modules/.pnpm/path-case@3.0.4/node_modules/path-case/dist/index.js"(exports) {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.pathCase = void 0;
11
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
12
- var dot_case_1 = require_dist();
13
- function pathCase(input, options) {
14
- if (options === void 0) options = {};
15
- return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "/" }, options));
16
- }
17
- exports.pathCase = pathCase;
18
- } });
19
-
20
- //#endregion
21
- export default require_dist$1();
22
-
23
- export { require_dist$1 as require_dist };
@@ -1,34 +0,0 @@
1
-
2
-
3
- import { __commonJS, __toCommonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
- import { init_tslib_es6, tslib_es6_exports } from "../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
5
- import { require_dist } from "../../../../no-case@3.0.4/node_modules/no-case/dist/index.js";
6
- import { require_dist as require_dist$1 } from "../../../../upper-case-first@2.0.2/node_modules/upper-case-first/dist/index.js";
7
-
8
- //#region node_modules/.pnpm/sentence-case@3.0.4/node_modules/sentence-case/dist/index.js
9
- var require_dist$2 = __commonJS({ "node_modules/.pnpm/sentence-case@3.0.4/node_modules/sentence-case/dist/index.js"(exports) {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.sentenceCase = exports.sentenceCaseTransform = void 0;
12
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
13
- var no_case_1 = require_dist();
14
- var upper_case_first_1 = require_dist$1();
15
- function sentenceCaseTransform(input, index) {
16
- var result = input.toLowerCase();
17
- if (index === 0) return upper_case_first_1.upperCaseFirst(result);
18
- return result;
19
- }
20
- exports.sentenceCaseTransform = sentenceCaseTransform;
21
- function sentenceCase(input, options) {
22
- if (options === void 0) options = {};
23
- return no_case_1.noCase(input, tslib_1.__assign({
24
- delimiter: " ",
25
- transform: sentenceCaseTransform
26
- }, options));
27
- }
28
- exports.sentenceCase = sentenceCase;
29
- } });
30
-
31
- //#endregion
32
- export default require_dist$2();
33
-
34
- export { require_dist$2 as require_dist };
@@ -1,23 +0,0 @@
1
-
2
-
3
- import { __commonJS, __toCommonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
- import { init_tslib_es6, tslib_es6_exports } from "../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
5
- import { require_dist } from "../../../../dot-case@3.0.4/node_modules/dot-case/dist/index.js";
6
-
7
- //#region node_modules/.pnpm/snake-case@3.0.4/node_modules/snake-case/dist/index.js
8
- var require_dist$1 = __commonJS({ "node_modules/.pnpm/snake-case@3.0.4/node_modules/snake-case/dist/index.js"(exports) {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.snakeCase = void 0;
11
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
12
- var dot_case_1 = require_dist();
13
- function snakeCase(input, options) {
14
- if (options === void 0) options = {};
15
- return dot_case_1.dotCase(input, tslib_1.__assign({ delimiter: "_" }, options));
16
- }
17
- exports.snakeCase = snakeCase;
18
- } });
19
-
20
- //#endregion
21
- export default require_dist$1();
22
-
23
- export { require_dist$1 as require_dist };
@@ -1,20 +0,0 @@
1
-
2
-
3
- import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
-
5
- //#region node_modules/.pnpm/sponge-case@1.0.1/node_modules/sponge-case/dist/index.js
6
- var require_dist = __commonJS({ "node_modules/.pnpm/sponge-case@1.0.1/node_modules/sponge-case/dist/index.js"(exports) {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.spongeCase = void 0;
9
- function spongeCase(input) {
10
- var result = "";
11
- for (var i = 0; i < input.length; i++) result += Math.random() > .5 ? input[i].toUpperCase() : input[i].toLowerCase();
12
- return result;
13
- }
14
- exports.spongeCase = spongeCase;
15
- } });
16
-
17
- //#endregion
18
- export default require_dist();
19
-
20
- export { require_dist };
@@ -1,23 +0,0 @@
1
-
2
-
3
- import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
-
5
- //#region node_modules/.pnpm/swap-case@2.0.2/node_modules/swap-case/dist/index.js
6
- var require_dist = __commonJS({ "node_modules/.pnpm/swap-case@2.0.2/node_modules/swap-case/dist/index.js"(exports) {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.swapCase = void 0;
9
- function swapCase(input) {
10
- var result = "";
11
- for (var i = 0; i < input.length; i++) {
12
- var lower = input[i].toLowerCase();
13
- result += input[i] === lower ? input[i].toUpperCase() : lower;
14
- }
15
- return result;
16
- }
17
- exports.swapCase = swapCase;
18
- } });
19
-
20
- //#endregion
21
- export default require_dist();
22
-
23
- export { require_dist };
@@ -1,35 +0,0 @@
1
-
2
-
3
- import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
4
-
5
- //#region node_modules/.pnpm/title-case@3.0.3/node_modules/title-case/dist/index.js
6
- var require_dist = __commonJS({ "node_modules/.pnpm/title-case@3.0.3/node_modules/title-case/dist/index.js"(exports) {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.titleCase = void 0;
9
- var SMALL_WORDS = /\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i;
10
- var TOKENS = /[^\s:–—-]+|./g;
11
- var WHITESPACE = /\s/;
12
- var IS_MANUAL_CASE = /.(?=[A-Z]|\..)/;
13
- var ALPHANUMERIC_PATTERN = /[A-Za-z0-9\u00C0-\u00FF]/;
14
- function titleCase(input) {
15
- var result = "";
16
- var m;
17
- while ((m = TOKENS.exec(input)) !== null) {
18
- var token = m[0], index = m.index;
19
- if (!IS_MANUAL_CASE.test(token) && (!SMALL_WORDS.test(token) || index === 0 || index + token.length === input.length) && (input.charAt(index + token.length) !== ":" || WHITESPACE.test(input.charAt(index + token.length + 1)))) {
20
- result += token.replace(ALPHANUMERIC_PATTERN, function(m$1) {
21
- return m$1.toUpperCase();
22
- });
23
- continue;
24
- }
25
- result += token;
26
- }
27
- return result;
28
- }
29
- exports.titleCase = titleCase;
30
- } });
31
-
32
- //#endregion
33
- export default require_dist();
34
-
35
- export { require_dist };