@ptc-org/nestjs-query-core 7.1.0 → 8.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptc-org/nestjs-query-core",
3
- "version": "7.1.0",
3
+ "version": "8.0.0",
4
4
  "description": "Base query package",
5
5
  "homepage": "https://github.com/tripss/nestjs-query#readme",
6
6
  "bugs": {
@@ -2,3 +2,5 @@ export type NamedType = {
2
2
  name: string;
3
3
  };
4
4
  export declare const isNamed: (SomeType: any) => SomeType is NamedType;
5
+ export declare function upperCaseFirst(input: string, locale?: string[] | string): string;
6
+ export declare function lowerCaseFirst(input: string): string;
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isNamed = void 0;
4
+ exports.upperCaseFirst = upperCaseFirst;
5
+ exports.lowerCaseFirst = lowerCaseFirst;
4
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/explicit-module-boundary-types
5
7
  const isNamed = (SomeType) =>
6
8
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
7
9
  'name' in SomeType && typeof SomeType.name === 'string';
8
10
  exports.isNamed = isNamed;
11
+ function upperCaseFirst(input, locale) {
12
+ return input.charAt(0).toLocaleUpperCase(locale) + input.slice(1);
13
+ }
14
+ function lowerCaseFirst(input) {
15
+ return input.charAt(0).toLowerCase() + input.slice(1);
16
+ }
9
17
  //# sourceMappingURL=misc.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"misc.utils.js","sourceRoot":"","sources":["../../../../../packages/core/src/common/misc.utils.ts"],"names":[],"mappings":";;;AACA,gHAAgH;AACzG,MAAM,OAAO,GAAG,CAAC,QAAa,EAAyB,EAAE;AAC9D,sEAAsE;AACtE,MAAM,IAAI,QAAQ,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAA;AAF5C,QAAA,OAAO,WAEqC"}
1
+ {"version":3,"file":"misc.utils.js","sourceRoot":"","sources":["../../../../../packages/core/src/common/misc.utils.ts"],"names":[],"mappings":";;;AAMA,wCAEC;AAED,wCAEC;AAXD,gHAAgH;AACzG,MAAM,OAAO,GAAG,CAAC,QAAa,EAAyB,EAAE;AAC9D,sEAAsE;AACtE,MAAM,IAAI,QAAQ,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAA;AAF5C,QAAA,OAAO,WAEqC;AAEzD,SAAgB,cAAc,CAAC,KAAa,EAAE,MAA0B;IACtE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACnE,CAAC;AAED,SAAgB,cAAc,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACvD,CAAC"}