Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 26, 2023
1 parent eafe883 commit f981ef5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-snakes-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@segment/analytics-core': patch
---

Tighten isPlainObject type guard
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"sideEffects": false,
"scripts": {
".": "yarn run -T turbo run --filter=@segment/analytics-next",
".": "yarn run -T turbo run --filter=@segment/analytics-next...",
"build-prep": "sh scripts/build-prep.sh",
"version": "yarn run build-prep && git add src/generated/version.ts",
"umd": "webpack",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/validation/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function exists<T>(val: unknown): val is NonNullable<T> {

export function isPlainObject(
obj: unknown
): obj is Record<string | symbol | number, any> {
): obj is Record<string | symbol | number, unknown> {
return (
Object.prototype.toString.call(obj).slice(8, -1).toLowerCase() === 'object'
)
Expand Down

0 comments on commit f981ef5

Please sign in to comment.