Socket
Socket
Sign inDemoInstall

@starbeam/core-utils

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@starbeam/core-utils - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

29

CHANGELOG.md
# @starbeam/core-utils
## 0.7.0
### Minor Changes
- 58f7974: Starbeam 0.7.0
- Significant improvements to debugging infrastructure
### Patch Changes
- Updated dependencies [58f7974]
- @starbeam/shared@1.2.0
## 0.6.0

@@ -12,3 +25,3 @@

- Updated dependencies
- @starbeam/peer@1.1.0
- @starbeam/shared@1.1.0

@@ -21,3 +34,3 @@ ## 0.5.8

- Updated dependencies
- @starbeam/peer@1.0.8
- @starbeam/shared@1.0.8

@@ -30,3 +43,3 @@ ## 0.5.7

- Updated dependencies
- @starbeam/peer@1.0.7
- @starbeam/shared@1.0.7

@@ -39,3 +52,3 @@ ## 0.5.6

- Updated dependencies
- @starbeam/peer@1.0.6
- @starbeam/shared@1.0.6

@@ -48,3 +61,3 @@ ## 0.5.5

- Updated dependencies
- @starbeam/peer@1.0.5
- @starbeam/shared@1.0.5

@@ -57,3 +70,3 @@ ## 0.5.4

- Updated dependencies
- @starbeam/peer@1.0.4
- @starbeam/shared@1.0.4

@@ -66,3 +79,3 @@ ## 0.5.3

- Updated dependencies [d21391d]
- @starbeam/peer@1.0.3
- @starbeam/shared@1.0.3

@@ -75,3 +88,3 @@ ## 0.5.2

- Updated dependencies [719a6fe]
- @starbeam/peer@1.0.2
- @starbeam/shared@1.0.2

@@ -78,0 +91,0 @@ ## 0.5.1

declare function isArray<T>(value: unknown | T[] | readonly T[]): value is T[] | readonly T[];
declare function isObject(value: unknown): value is object;
declare function isPresent<T>(value: T | null | undefined | void): value is T;
export { isArray, isObject, isPresent };
export { UNINITIALIZED } from "@starbeam/peer";
/**
* The `UNINITIALIZED` symbol represents a special internal value that can be used to differentiate
* between any user-supplied value and the state of being uninitialized.
*
* You do not **need** to import `@starbeam/shared` to get this symbol, as it is specified using
* `Symbol.for`.
*/
declare const UNINITIALIZED: unique symbol;
type UNINITIALIZED = typeof UNINITIALIZED;
export { isArray, isObject, isPresent, UNINITIALIZED };
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,1 @@

export { UNINITIALIZED } from '@starbeam/peer';
function isArray(value) {

@@ -15,3 +13,53 @@ return Array.isArray(value);

export { isArray, isObject, isPresent };
/**
* The `UNINITIALIZED` symbol represents a special internal value that can be used to differentiate
* between any user-supplied value and the state of being uninitialized.
*
* You do not **need** to import `@starbeam/shared` to get this symbol, as it is specified using
* `Symbol.for`.
*/ const UNINITIALIZED = Symbol.for("starbeam.UNINITIALIZED");
/**
* The `NOW` symbol is the name on `globalThis` that is used to store the current timestamp.
*/ const COORDINATION$1 = Symbol.for("starbeam.COORDINATION");
function getCoordination() {
let coordination = globalThis[COORDINATION$1];
if (!coordination) {
globalThis[COORDINATION$1] = coordination = {};
}
return coordination;
}
const COORDINATION = getCoordination();
/**
* This code provides a guaranteed-unique ID, even if there are multiple copies of `@starbeam/shared`.
*
* This code intentionally does not use a UUID to make it easier to use these IDs in debugging
* context, which is their primary purpose.
*/ let idGenerator = COORDINATION.id;
if (!idGenerator) {
let CURRENT_ID = 1;
idGenerator = COORDINATION.id = {
get () {
return CURRENT_ID++;
}
};
}
/**
* The `CLOCK` constant is a universal monotonically increasing clock. The `Timestamp` class is used
* in `@starbeam/timeline` and `@starbeam/core`, but `Timestamp` defers to this constant. This means
* that multiple copies of `@starbeam/timeline` will still see the same monotonically increasing clock.
*
* The term "timestamp" is used in this context to refer to a monotonically increasing number, where
* each number represents a different moment in time.
*/ const coordination = getCoordination();
let clock = coordination.now;
if (!clock) {
clock = coordination.now = {
timestamp: 0
};
}
export { UNINITIALIZED, isArray, isObject, isPresent };
//# sourceMappingURL=index.js.map
export { isArray } from "./src/array.js";
export { isObject } from "./src/object.js";
export { isPresent } from "./src/value.js";
export { UNINITIALIZED } from "@starbeam/peer";
export { UNINITIALIZED } from "../shared/index.js";
{
"name": "@starbeam/core-utils",
"version": "0.6.0",
"version": "0.7.0",
"type": "module",
"main": "dist/index.cjs",
"dependencies": {
"@starbeam/peer": "^1.1.0"
"@starbeam/shared": "^1.2.0"
},

@@ -9,0 +9,0 @@ "devDependencies": {},

{
"extends": "../../tsconfig.package.json",
"compilerOptions": { "types": ["../env"] }
"extends": "../../.config/tsconfig/tsconfig.-package.json",
"compilerOptions": {
"declaration": true,
"composite": true,
"declarationMap": true,
"declarationDir": "../../dist/types/@starbeam/core-utils",
"emitDeclarationOnly": true,
"types": ["../env"]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc