Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit f7cfe79

Browse files
committed
fixed typos
1 parent 3c24b00 commit f7cfe79

File tree

14 files changed

+26
-13
lines changed

14 files changed

+26
-13
lines changed

examples/react/release/boxes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@agile-ts/core": "file:.yalc/@agile-ts/core",
6+
"@agile-ts/core": "^0.1.3",
77
"@agile-ts/logger": "^0.0.7",
88
"@agile-ts/proxytree": "^0.0.5",
99
"@agile-ts/react": "^0.1.2",

packages/api/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "ES2015",
55
"outDir": "dist/esm",
6-
"declaration": false, // already generated via 'tsconfig.json' in root
6+
"declaration": false, // already generated via 'tsconfig.json' in the root dist folder
77
"removeComments": true
88
}
99
}

packages/core/src/logCodeManager.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,14 @@ function logIfTags<T extends LogCodesArrayType<typeof logCodeMessages>>(
261261
*
262262
* @internal
263263
*/
264-
let tempLogCodeManager;
264+
let tempLogCodeManager: {
265+
getLog: typeof getLog;
266+
log: typeof log;
267+
logCodeLogTypes: typeof logCodeTypes;
268+
logCodeMessages: typeof logCodeMessages;
269+
getLogger: () => any;
270+
logIfTags: typeof logIfTags;
271+
};
265272
if (typeof process === 'object' && process.env.NODE_ENV !== 'production') {
266273
tempLogCodeManager = {
267274
getLog,
@@ -277,13 +284,13 @@ if (typeof process === 'object' && process.env.NODE_ENV !== 'production') {
277284
} catch (e) {
278285
// empty catch block
279286
}
280-
281287
return loggerPackage?.sharedAgileLogger ?? null;
282288
},
283289
logIfTags,
284290
};
285291
} else {
286292
tempLogCodeManager = {
293+
// Log only logCode
287294
getLog: (logCode, replacers) => logCode,
288295
log,
289296
logCodeLogTypes: logCodeTypes,

packages/core/tests/unit/collection/collection.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('Collection Tests', () => {
5555
expect(collection.persistent).toBeUndefined();
5656
expect(collection.groups).toStrictEqual({});
5757
expect(collection.selectors).toStrictEqual({});
58+
expect(collection.isCollection).toBeTruthy();
5859

5960
expect(Collection.prototype.initGroups).toHaveBeenCalledWith({});
6061
expect(Collection.prototype.initSelectors).toHaveBeenCalledWith({});
@@ -93,6 +94,7 @@ describe('Collection Tests', () => {
9394
expect(collection.persistent).toBeUndefined();
9495
expect(collection.groups).toStrictEqual({});
9596
expect(collection.selectors).toStrictEqual({});
97+
expect(collection.isCollection).toBeTruthy();
9698

9799
expect(Collection.prototype.initGroups).toHaveBeenCalledWith([
98100
'group1',
@@ -146,6 +148,7 @@ describe('Collection Tests', () => {
146148
expect(collection.persistent).toBeUndefined();
147149
expect(collection.groups).toStrictEqual({});
148150
expect(collection.selectors).toStrictEqual({});
151+
expect(collection.isCollection).toBeTruthy();
149152

150153
expect(Collection.prototype.initGroups).toHaveBeenCalledWith({
151154
group1: expect.any(Group),

packages/core/tests/unit/computed/computed.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe('Computed Tests', () => {
3131

3232
expect(computed.computeFunction).toBe(computedFunction);
3333
expect(computed.config).toStrictEqual({ autodetect: true });
34+
expect(computed.isComputed).toBeTruthy();
3435
expect(Array.from(computed.deps)).toStrictEqual([]);
3536
expect(computed.hardCodedDeps).toStrictEqual([]);
3637
expect(Utils.extractRelevantObservers).toHaveBeenCalledWith([]);
@@ -80,6 +81,7 @@ describe('Computed Tests', () => {
8081

8182
expect(computed.computeFunction).toBe(computedFunction);
8283
expect(computed.config).toStrictEqual({ autodetect: false });
84+
expect(computed.isComputed).toBeTruthy();
8385
expect(Array.from(computed.deps)).toStrictEqual([
8486
dummyObserver2,
8587
dummyStateObserver,
@@ -134,6 +136,7 @@ describe('Computed Tests', () => {
134136

135137
expect(computed.computeFunction).toBe(computedFunction);
136138
expect(computed.config).toStrictEqual({ autodetect: false });
139+
expect(computed.isComputed).toBeTruthy();
137140
expect(Array.from(computed.deps)).toStrictEqual([]);
138141
expect(computed.hardCodedDeps).toStrictEqual([]);
139142
expect(Utils.extractRelevantObservers).toHaveBeenCalledWith([]);

packages/core/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "ES2015",
55
"outDir": "dist/esm",
6-
"declaration": false, // already generated via 'tsconfig.json' in root
6+
"declaration": false, // already generated via 'tsconfig.json' in the root dist folder
77
"removeComments": true
88
}
99
}

packages/event/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "ES2015",
55
"outDir": "dist/esm",
6-
"declaration": false, // already generated via 'tsconfig.json' in root
6+
"declaration": false, // already generated via 'tsconfig.json' in the root dist folder
77
"removeComments": true
88
}
99
}

packages/logger/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "ES2015",
55
"outDir": "dist/esm",
6-
"declaration": false, // already generated via 'tsconfig.json' in root
6+
"declaration": false, // already generated via 'tsconfig.json' in the root dist folder
77
"removeComments": true
88
}
99
}

packages/multieditor/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "ES2015",
55
"outDir": "dist/esm",
6-
"declaration": false, // already generated via 'tsconfig.json' in root
6+
"declaration": false, // already generated via 'tsconfig.json' in the root dist folder
77
"removeComments": true
88
}
99
}

packages/proxytree/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"module": "ES2015",
55
"outDir": "dist/esm",
6-
"declaration": false, // already generated via 'tsconfig.json' in root
6+
"declaration": false, // already generated via 'tsconfig.json' in the root dist folder
77
"removeComments": true
88
}
99
}

0 commit comments

Comments
 (0)