@onivoro/isomorphic-common 0.3.2 → 0.3.3
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 +1 -1
- package/dist/cjs/jest.config.d.ts +0 -14
- package/dist/cjs/jest.config.js +0 -19
- package/dist/cjs/src/lib/functions/add-offset.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/add-offset.function.spec.js +0 -13
- package/dist/cjs/src/lib/functions/convert-object-to-literal.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/convert-object-to-literal.function.spec.js +0 -11
- package/dist/cjs/src/lib/functions/from-calendar-date.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/from-calendar-date.function.spec.js +0 -12
- package/dist/cjs/src/lib/functions/subtract-offset.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/subtract-offset.function.spec.js +0 -13
- package/dist/cjs/src/lib/functions/to-dollars-and-cents.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/to-dollars-and-cents.function.spec.js +0 -8
- package/dist/cjs/src/lib/functions/to-unique-array.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/to-unique-array.function.spec.js +0 -35
- package/dist/cjs/src/lib/functions/to-words.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/to-words.function.spec.js +0 -8
- package/dist/cjs/src/lib/functions/try-parse-date.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/try-parse-date.function.spec.js +0 -13
- package/dist/cjs/src/lib/functions/upper-first.function.spec.d.ts +0 -1
- package/dist/cjs/src/lib/functions/upper-first.function.spec.js +0 -16
- package/dist/esm/jest.config.d.ts +0 -14
- package/dist/esm/jest.config.js +0 -17
- package/dist/esm/src/lib/functions/add-offset.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/add-offset.function.spec.js +0 -11
- package/dist/esm/src/lib/functions/convert-object-to-literal.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/convert-object-to-literal.function.spec.js +0 -9
- package/dist/esm/src/lib/functions/from-calendar-date.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/from-calendar-date.function.spec.js +0 -10
- package/dist/esm/src/lib/functions/subtract-offset.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/subtract-offset.function.spec.js +0 -11
- package/dist/esm/src/lib/functions/to-dollars-and-cents.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/to-dollars-and-cents.function.spec.js +0 -6
- package/dist/esm/src/lib/functions/to-unique-array.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/to-unique-array.function.spec.js +0 -33
- package/dist/esm/src/lib/functions/to-words.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/to-words.function.spec.js +0 -6
- package/dist/esm/src/lib/functions/try-parse-date.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/try-parse-date.function.spec.js +0 -11
- package/dist/esm/src/lib/functions/upper-first.function.spec.d.ts +0 -1
- package/dist/esm/src/lib/functions/upper-first.function.spec.js +0 -14
- package/dist/types/jest.config.d.ts +0 -14
- package/dist/types/src/lib/functions/add-offset.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/convert-object-to-literal.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/from-calendar-date.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/subtract-offset.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/to-dollars-and-cents.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/to-unique-array.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/to-words.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/try-parse-date.function.spec.d.ts +0 -1
- package/dist/types/src/lib/functions/upper-first.function.spec.d.ts +0 -1
- /package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/cjs/{src/index.js → index.js} +0 -0
- /package/dist/cjs/{src/lib → lib}/constants/millis-per-day.constant.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/constants/millis-per-day.constant.js +0 -0
- /package/dist/cjs/{src/lib → lib}/constants/millis-per-hour.constant.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/constants/millis-per-hour.constant.js +0 -0
- /package/dist/cjs/{src/lib → lib}/constants/millis-per-minute.constant.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/constants/millis-per-minute.constant.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/add-offset.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/add-offset.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/camel-case.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/camel-case.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/convert-object-to-literal.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/convert-object-to-literal.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/from-boolean-string.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/from-boolean-string.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/from-calendar-date.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/from-calendar-date.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/from-csv-string.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/from-csv-string.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/get-tag.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/get-tag.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/is-symbol.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/is-symbol.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/kebab-case.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/kebab-case.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/parse-bool.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/parse-bool.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/properties-to-array.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/properties-to-array.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/sanitize-filename.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/sanitize-filename.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/snake-case.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/snake-case.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/subtract-offset.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/subtract-offset.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-boolean-string.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-boolean-string.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-calendar-date.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-calendar-date.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-csv-string.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-csv-string.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-decimal-base.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-decimal-base.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-dollars-and-cents.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-dollars-and-cents.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-string.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-string.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-unique-array.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-unique-array.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-words.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/to-words.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/try-parse-date.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/try-parse-date.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/unicode-words.const.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/unicode-words.const.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/upper-first.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/upper-first.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/words.function.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/functions/words.function.js +0 -0
- /package/dist/cjs/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.js +0 -0
- /package/dist/cjs/{src/lib → lib}/interfaces/entity-provider.interface.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/interfaces/entity-provider.interface.js +0 -0
- /package/dist/cjs/{src/lib → lib}/interfaces/keys-of.type.d.ts +0 -0
- /package/dist/cjs/{src/lib → lib}/interfaces/keys-of.type.js +0 -0
- /package/dist/esm/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/esm/{src/index.js → index.js} +0 -0
- /package/dist/esm/{src/lib → lib}/constants/millis-per-day.constant.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/constants/millis-per-day.constant.js +0 -0
- /package/dist/esm/{src/lib → lib}/constants/millis-per-hour.constant.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/constants/millis-per-hour.constant.js +0 -0
- /package/dist/esm/{src/lib → lib}/constants/millis-per-minute.constant.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/constants/millis-per-minute.constant.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/add-offset.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/add-offset.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/camel-case.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/camel-case.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/convert-object-to-literal.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/convert-object-to-literal.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/from-boolean-string.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/from-boolean-string.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/from-calendar-date.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/from-calendar-date.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/from-csv-string.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/from-csv-string.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/get-tag.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/get-tag.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/is-symbol.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/is-symbol.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/kebab-case.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/kebab-case.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/parse-bool.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/parse-bool.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/properties-to-array.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/properties-to-array.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/sanitize-filename.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/sanitize-filename.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/snake-case.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/snake-case.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/subtract-offset.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/subtract-offset.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-boolean-string.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-boolean-string.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-calendar-date.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-calendar-date.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-csv-string.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-csv-string.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-decimal-base.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-decimal-base.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-dollars-and-cents.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-dollars-and-cents.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-string.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-string.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-unique-array.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-unique-array.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-words.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/to-words.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/try-parse-date.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/try-parse-date.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/unicode-words.const.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/unicode-words.const.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/upper-first.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/upper-first.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/functions/words.function.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/functions/words.function.js +0 -0
- /package/dist/esm/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.js +0 -0
- /package/dist/esm/{src/lib → lib}/interfaces/entity-provider.interface.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/interfaces/entity-provider.interface.js +0 -0
- /package/dist/esm/{src/lib → lib}/interfaces/keys-of.type.d.ts +0 -0
- /package/dist/esm/{src/lib → lib}/interfaces/keys-of.type.js +0 -0
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/lib → lib}/constants/millis-per-day.constant.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/constants/millis-per-hour.constant.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/constants/millis-per-minute.constant.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/add-offset.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/camel-case.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/convert-object-to-literal.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/from-boolean-string.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/from-calendar-date.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/from-csv-string.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/get-tag.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/is-symbol.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/kebab-case.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/parse-bool.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/properties-to-array.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/sanitize-filename.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/snake-case.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/subtract-offset.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-boolean-string.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-calendar-date.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-csv-string.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-decimal-base.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-dollars-and-cents.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-string.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-unique-array.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/to-words.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/try-parse-date.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/unicode-words.const.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/upper-first.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/functions/words.function.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/interfaces/axios-wrapped-nest-exception.interface.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/interfaces/entity-provider.interface.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/interfaces/keys-of.type.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
displayName: string;
|
|
3
|
-
preset: string;
|
|
4
|
-
globals: {};
|
|
5
|
-
testEnvironment: string;
|
|
6
|
-
transform: {
|
|
7
|
-
'^.+\\.[tj]sx?$': (string | {
|
|
8
|
-
tsconfig: string;
|
|
9
|
-
})[];
|
|
10
|
-
};
|
|
11
|
-
moduleFileExtensions: string[];
|
|
12
|
-
coverageDirectory: string;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
package/dist/cjs/jest.config.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
exports.default = {
|
|
5
|
-
displayName: 'isomorphic-common',
|
|
6
|
-
preset: '../../jest.preset.js',
|
|
7
|
-
globals: {},
|
|
8
|
-
testEnvironment: 'node',
|
|
9
|
-
transform: {
|
|
10
|
-
'^.+\\.[tj]sx?$': [
|
|
11
|
-
'ts-jest',
|
|
12
|
-
{
|
|
13
|
-
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
18
|
-
coverageDirectory: '../../coverage/libs/isomorphic-common',
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const add_offset_function_1 = require("./add-offset.function");
|
|
4
|
-
describe('addOffset', () => {
|
|
5
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
6
|
-
it.each([
|
|
7
|
-
'2023-12-23',
|
|
8
|
-
'2023-12-23T00:00:00.000',
|
|
9
|
-
])('%j', (input) => {
|
|
10
|
-
expect((0, add_offset_function_1.addOffset)(input)).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const convert_object_to_literal_function_1 = require("./convert-object-to-literal.function");
|
|
4
|
-
const qty = 337;
|
|
5
|
-
const price = 100;
|
|
6
|
-
const product = 'flux-capacitor';
|
|
7
|
-
describe(__filename, () => {
|
|
8
|
-
it.each([[(k, v) => `${k}=${v}`, ' AND ', { qty, price, product }]])('converts an object to a string', (literalFn, delimiter, obj) => {
|
|
9
|
-
expect((0, convert_object_to_literal_function_1.convertObjectToLiteral)(literalFn, delimiter, obj)).toMatchSnapshot();
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const from_calendar_date_function_1 = require("./from-calendar-date.function");
|
|
4
|
-
describe('fromCalendarDate', () => {
|
|
5
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
6
|
-
it.each([
|
|
7
|
-
'2023-12-23',
|
|
8
|
-
])('%j', (input) => {
|
|
9
|
-
expect((0, from_calendar_date_function_1.fromCalendarDate)(input)).toMatchSnapshot();
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const subtract_offset_function_1 = require("./subtract-offset.function");
|
|
4
|
-
describe('subtractOffset', () => {
|
|
5
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
6
|
-
it.each([
|
|
7
|
-
'2023-12-23',
|
|
8
|
-
'2023-12-23T00:00:00.000',
|
|
9
|
-
])('%j', (input) => {
|
|
10
|
-
expect((0, subtract_offset_function_1.subtractOffset)(input)).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const to_dollars_and_cents_function_1 = require("./to-dollars-and-cents.function");
|
|
4
|
-
describe('toDollarsAndCents', () => {
|
|
5
|
-
it('worx', () => {
|
|
6
|
-
expect((0, to_dollars_and_cents_function_1.toDollarsAndCents)(337.33)).toMatchSnapshot();
|
|
7
|
-
});
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const to_unique_array_function_1 = require("./to-unique-array.function");
|
|
4
|
-
describe('toUniqueArray', () => {
|
|
5
|
-
it.each([
|
|
6
|
-
[
|
|
7
|
-
[1, 2, 3],
|
|
8
|
-
[1, 2, 3],
|
|
9
|
-
],
|
|
10
|
-
[[1, 1, 1], [1]],
|
|
11
|
-
])('GIVEN array of numbers: %j, returns a unique array without duplicate elements', (array, expected) => {
|
|
12
|
-
expect((0, to_unique_array_function_1.toUniqueArray)(array)).toEqual(expected);
|
|
13
|
-
});
|
|
14
|
-
it.each([
|
|
15
|
-
[
|
|
16
|
-
['one', 'two', 'three'],
|
|
17
|
-
['one', 'two', 'three'],
|
|
18
|
-
],
|
|
19
|
-
[['one', 'one', 'one'], ['one']],
|
|
20
|
-
])('GIVEN array of strings: %j, returns a unique array without duplicate elements', (array, expected) => {
|
|
21
|
-
expect((0, to_unique_array_function_1.toUniqueArray)(array)).toEqual(expected);
|
|
22
|
-
});
|
|
23
|
-
it.each([
|
|
24
|
-
[
|
|
25
|
-
['one', 'two', 'three', undefined, undefined],
|
|
26
|
-
['one', 'two', 'three', undefined],
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
['one', 'one', 'one', null, null],
|
|
30
|
-
['one', null],
|
|
31
|
-
],
|
|
32
|
-
])('GIVEN array with falsey values: %j, returns a unique array without duplicate elements including falsey values', (array, expected) => {
|
|
33
|
-
expect((0, to_unique_array_function_1.toUniqueArray)(array)).toEqual(expected);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const to_words_function_1 = require("./to-words.function");
|
|
4
|
-
describe('toWords', () => {
|
|
5
|
-
it('worx', () => {
|
|
6
|
-
expect((0, to_words_function_1.toWords)(337)).toMatchSnapshot();
|
|
7
|
-
});
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const try_parse_date_function_1 = require("./try-parse-date.function");
|
|
4
|
-
describe('tryParseDate', () => {
|
|
5
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
6
|
-
it.each([
|
|
7
|
-
'2023-12-23',
|
|
8
|
-
'2023-12-23T00:00:00.000',
|
|
9
|
-
])('%j', (input) => {
|
|
10
|
-
expect((0, try_parse_date_function_1.tryParseDate)(input)).toMatchSnapshot();
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const upper_first_function_1 = require("./upper-first.function");
|
|
4
|
-
describe('upperFirst', () => {
|
|
5
|
-
it.each([
|
|
6
|
-
'asdf',
|
|
7
|
-
'XCVB'
|
|
8
|
-
])('GIVEN %j, does what u expect', (input) => {
|
|
9
|
-
expect((0, upper_first_function_1.upperFirst)(input)).toMatchSnapshot();
|
|
10
|
-
});
|
|
11
|
-
it.each([
|
|
12
|
-
null, undefined, 0, false
|
|
13
|
-
])('GIVEN falsey input %j, does what u expect', (input) => {
|
|
14
|
-
expect((0, upper_first_function_1.upperFirst)(input)).toMatchSnapshot();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
displayName: string;
|
|
3
|
-
preset: string;
|
|
4
|
-
globals: {};
|
|
5
|
-
testEnvironment: string;
|
|
6
|
-
transform: {
|
|
7
|
-
'^.+\\.[tj]sx?$': (string | {
|
|
8
|
-
tsconfig: string;
|
|
9
|
-
})[];
|
|
10
|
-
};
|
|
11
|
-
moduleFileExtensions: string[];
|
|
12
|
-
coverageDirectory: string;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
package/dist/esm/jest.config.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
export default {
|
|
3
|
-
displayName: 'isomorphic-common',
|
|
4
|
-
preset: '../../jest.preset.js',
|
|
5
|
-
globals: {},
|
|
6
|
-
testEnvironment: 'node',
|
|
7
|
-
transform: {
|
|
8
|
-
'^.+\\.[tj]sx?$': [
|
|
9
|
-
'ts-jest',
|
|
10
|
-
{
|
|
11
|
-
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
16
|
-
coverageDirectory: '../../coverage/libs/isomorphic-common',
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { addOffset } from './add-offset.function';
|
|
2
|
-
describe('addOffset', () => {
|
|
3
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
'2023-12-23',
|
|
6
|
-
'2023-12-23T00:00:00.000',
|
|
7
|
-
])('%j', (input) => {
|
|
8
|
-
expect(addOffset(input)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { convertObjectToLiteral } from './convert-object-to-literal.function';
|
|
2
|
-
const qty = 337;
|
|
3
|
-
const price = 100;
|
|
4
|
-
const product = 'flux-capacitor';
|
|
5
|
-
describe(__filename, () => {
|
|
6
|
-
it.each([[(k, v) => `${k}=${v}`, ' AND ', { qty, price, product }]])('converts an object to a string', (literalFn, delimiter, obj) => {
|
|
7
|
-
expect(convertObjectToLiteral(literalFn, delimiter, obj)).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { fromCalendarDate } from './from-calendar-date.function';
|
|
2
|
-
describe('fromCalendarDate', () => {
|
|
3
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
'2023-12-23',
|
|
6
|
-
])('%j', (input) => {
|
|
7
|
-
expect(fromCalendarDate(input)).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { subtractOffset } from './subtract-offset.function';
|
|
2
|
-
describe('subtractOffset', () => {
|
|
3
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
'2023-12-23',
|
|
6
|
-
'2023-12-23T00:00:00.000',
|
|
7
|
-
])('%j', (input) => {
|
|
8
|
-
expect(subtractOffset(input)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { toUniqueArray } from './to-unique-array.function';
|
|
2
|
-
describe('toUniqueArray', () => {
|
|
3
|
-
it.each([
|
|
4
|
-
[
|
|
5
|
-
[1, 2, 3],
|
|
6
|
-
[1, 2, 3],
|
|
7
|
-
],
|
|
8
|
-
[[1, 1, 1], [1]],
|
|
9
|
-
])('GIVEN array of numbers: %j, returns a unique array without duplicate elements', (array, expected) => {
|
|
10
|
-
expect(toUniqueArray(array)).toEqual(expected);
|
|
11
|
-
});
|
|
12
|
-
it.each([
|
|
13
|
-
[
|
|
14
|
-
['one', 'two', 'three'],
|
|
15
|
-
['one', 'two', 'three'],
|
|
16
|
-
],
|
|
17
|
-
[['one', 'one', 'one'], ['one']],
|
|
18
|
-
])('GIVEN array of strings: %j, returns a unique array without duplicate elements', (array, expected) => {
|
|
19
|
-
expect(toUniqueArray(array)).toEqual(expected);
|
|
20
|
-
});
|
|
21
|
-
it.each([
|
|
22
|
-
[
|
|
23
|
-
['one', 'two', 'three', undefined, undefined],
|
|
24
|
-
['one', 'two', 'three', undefined],
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
['one', 'one', 'one', null, null],
|
|
28
|
-
['one', null],
|
|
29
|
-
],
|
|
30
|
-
])('GIVEN array with falsey values: %j, returns a unique array without duplicate elements including falsey values', (array, expected) => {
|
|
31
|
-
expect(toUniqueArray(array)).toEqual(expected);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { tryParseDate } from './try-parse-date.function';
|
|
2
|
-
describe('tryParseDate', () => {
|
|
3
|
-
describe('GIVEN input is partial or full ISO8601', () => {
|
|
4
|
-
it.each([
|
|
5
|
-
'2023-12-23',
|
|
6
|
-
'2023-12-23T00:00:00.000',
|
|
7
|
-
])('%j', (input) => {
|
|
8
|
-
expect(tryParseDate(input)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { upperFirst } from './upper-first.function';
|
|
2
|
-
describe('upperFirst', () => {
|
|
3
|
-
it.each([
|
|
4
|
-
'asdf',
|
|
5
|
-
'XCVB'
|
|
6
|
-
])('GIVEN %j, does what u expect', (input) => {
|
|
7
|
-
expect(upperFirst(input)).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
it.each([
|
|
10
|
-
null, undefined, 0, false
|
|
11
|
-
])('GIVEN falsey input %j, does what u expect', (input) => {
|
|
12
|
-
expect(upperFirst(input)).toMatchSnapshot();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
displayName: string;
|
|
3
|
-
preset: string;
|
|
4
|
-
globals: {};
|
|
5
|
-
testEnvironment: string;
|
|
6
|
-
transform: {
|
|
7
|
-
'^.+\\.[tj]sx?$': (string | {
|
|
8
|
-
tsconfig: string;
|
|
9
|
-
})[];
|
|
10
|
-
};
|
|
11
|
-
moduleFileExtensions: string[];
|
|
12
|
-
coverageDirectory: string;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|