@mado/utils 0.1.0 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mado/utils
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ce252f2: - Add capitalize function
8
+ - Add isNil function
9
+
3
10
  ## 0.1.0
4
11
 
5
12
  ### Minor Changes
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // src/capitalize.ts
4
+ function capitalize(str) {
5
+ return str.charAt(0).toUpperCase() + str.substring(1);
6
+ }
7
+
8
+ exports.capitalize = capitalize;
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=capitalize.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/capitalize.ts"],"names":[],"mappings":";AAAO,SAAS,WAAW,KAAqB;AAC9C,SAAO,IAAI,OAAO,CAAC,EAAE,YAAY,IAAI,IAAI,UAAU,CAAC;AACtD","sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.substring(1);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ declare function capitalize(str: string): string;
2
+
3
+ export { capitalize };
@@ -0,0 +1,3 @@
1
+ declare function capitalize(str: string): string;
2
+
3
+ export { capitalize };
@@ -0,0 +1,8 @@
1
+ // src/capitalize.ts
2
+ function capitalize(str) {
3
+ return str.charAt(0).toUpperCase() + str.substring(1);
4
+ }
5
+
6
+ export { capitalize };
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=capitalize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/capitalize.ts"],"names":[],"mappings":";AAAO,SAAS,WAAW,KAAqB;AAC9C,SAAO,IAAI,OAAO,CAAC,EAAE,YAAY,IAAI,IAAI,UAAU,CAAC;AACtD","sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.substring(1);\n}\n"]}
package/dist/index.cjs CHANGED
@@ -1,16 +1,30 @@
1
1
  'use strict';
2
2
 
3
+ var capitalize_cjs = require('./capitalize.cjs');
3
4
  var debounce_cjs = require('./debounce.cjs');
5
+ var isNil_cjs = require('./isNil.cjs');
4
6
  var storageAvailable_cjs = require('./storageAvailable.cjs');
5
7
 
6
8
 
7
9
 
10
+ Object.keys(capitalize_cjs).forEach(function (k) {
11
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
12
+ enumerable: true,
13
+ get: function () { return capitalize_cjs[k]; }
14
+ });
15
+ });
8
16
  Object.keys(debounce_cjs).forEach(function (k) {
9
17
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
10
18
  enumerable: true,
11
19
  get: function () { return debounce_cjs[k]; }
12
20
  });
13
21
  });
22
+ Object.keys(isNil_cjs).forEach(function (k) {
23
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
24
+ enumerable: true,
25
+ get: function () { return isNil_cjs[k]; }
26
+ });
27
+ });
14
28
  Object.keys(storageAvailable_cjs).forEach(function (k) {
15
29
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
16
30
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,cAAc","sourcesContent":["export * from './debounce';\nexport * from './storageAvailable';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","sourcesContent":["export * from './capitalize';\nexport * from './debounce';\nexport * from './isNil';\nexport * from './storageAvailable';\n"]}
package/dist/index.d.cts CHANGED
@@ -1,2 +1,4 @@
1
+ export { capitalize } from './capitalize.cjs';
1
2
  export { Cancelable, debounce } from './debounce.cjs';
3
+ export { isNil } from './isNil.cjs';
2
4
  export { storageAvailable } from './storageAvailable.cjs';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export { capitalize } from './capitalize.js';
1
2
  export { Cancelable, debounce } from './debounce.js';
3
+ export { isNil } from './isNil.js';
2
4
  export { storageAvailable } from './storageAvailable.js';
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
+ export * from './capitalize.js';
1
2
  export * from './debounce.js';
3
+ export * from './isNil.js';
2
4
  export * from './storageAvailable.js';
3
5
  //# sourceMappingURL=out.js.map
4
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,cAAc","sourcesContent":["export * from './debounce';\nexport * from './storageAvailable';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","sourcesContent":["export * from './capitalize';\nexport * from './debounce';\nexport * from './isNil';\nexport * from './storageAvailable';\n"]}
package/dist/isNil.cjs ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // src/isNil.ts
4
+ function isNil(value) {
5
+ return value == null;
6
+ }
7
+
8
+ exports.isNil = isNil;
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=isNil.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isNil.ts"],"names":[],"mappings":";AAAO,SAAS,MAAM,OAA2C;AAC/D,SAAO,SAAS;AAClB","sourcesContent":["export function isNil(value: unknown): value is null | undefined {\n return value == null;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ declare function isNil(value: unknown): value is null | undefined;
2
+
3
+ export { isNil };
@@ -0,0 +1,3 @@
1
+ declare function isNil(value: unknown): value is null | undefined;
2
+
3
+ export { isNil };
package/dist/isNil.js ADDED
@@ -0,0 +1,8 @@
1
+ // src/isNil.ts
2
+ function isNil(value) {
3
+ return value == null;
4
+ }
5
+
6
+ export { isNil };
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=isNil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/isNil.ts"],"names":[],"mappings":";AAAO,SAAS,MAAM,OAA2C;AAC/D,SAAO,SAAS;AAClB","sourcesContent":["export function isNil(value: unknown): value is null | undefined {\n return value == null;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mado/utils",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -0,0 +1,3 @@
1
+ export function capitalize(str: string): string {
2
+ return str.charAt(0).toUpperCase() + str.substring(1);
3
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export * from './capitalize';
1
2
  export * from './debounce';
3
+ export * from './isNil';
2
4
  export * from './storageAvailable';
package/src/isNil.ts ADDED
@@ -0,0 +1,3 @@
1
+ export function isNil(value: unknown): value is null | undefined {
2
+ return value == null;
3
+ }