Socket
Socket
Sign inDemoInstall

@starbeam/shared

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@starbeam/shared - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8-unstable.9203102

src/stack.ts

2

.eslintrc.json

@@ -8,3 +8,3 @@ {

"parserOptions": {
"project": "packages/universal/shared/tsconfig.json"
"project": "tsconfig.json"
}

@@ -11,0 +11,0 @@ }

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

export { COORDINATION, REACTIVE, UNINITIALIZED } from "./src/constants.js";
export { COORDINATION, TAG, UNINITIALIZED } from "./src/constants.js";
export { getID } from "./src/id.js";
export { bump, now } from "./src/now.js";
export { consume, start } from "./src/stack.js";
{
"name": "@starbeam/shared",
"version": "1.3.7",
"version": "1.3.8-unstable.9203102",
"description": "A package that facilitates having multiple copies of Starbeam in a single process that interoperate with each other",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"main": "index.ts",
"types": "index.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.cjs"
}
"default": "./index.ts"
},
"publishConfig": {
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"types": "dist/index.d.ts"
},
"starbeam:type": "library:public",
"devDependencies": {
"@starbeam-dev/build-support": "1.0.0"
},
"scripts": {
"test:lint": "eslint",
"test:lint": "eslint \"index.ts\" \"src/**/*.ts\"",
"test:specs": "vitest --run",
"test:types": "tsc -b"
},
"devDependencies": {
"@starbeam-dev/build-support": "workspace:*",
"rollup": "^3.20.6"
}
}
}

@@ -12,7 +12,7 @@ /**

/**
* The `REACTIVE` symbol is the protocol entry point for reactive values. Implementations of
* the `ReactiveProtocol` interface specify their reactive behavior under this symbol.
* The `TAG` symbol is the protocol entry point for reactive values. Implementations of the `Tagged`
* interface specify their reactive behavior under this symbol.
*/
const REACTIVE: unique symbol = Symbol.for("starbeam.REACTIVE");
type REACTIVE = typeof REACTIVE;
const TAG: unique symbol = Symbol.for("starbeam.TAG");
type TAG = typeof TAG;

@@ -25,2 +25,2 @@ /**

export { COORDINATION, REACTIVE, UNINITIALIZED };
export { COORDINATION, TAG, UNINITIALIZED };

@@ -14,2 +14,6 @@ import { COORDINATION } from "./constants.js";

};
stack: {
start: () => () => unknown[];
consume: (tag: unknown) => void;
};
}

@@ -16,0 +20,0 @@

@@ -17,3 +17,3 @@ import { getCoordination } from "./env.js";

clock = coordination.now = {
timestamp: 0,
timestamp: 1,
};

@@ -20,0 +20,0 @@ }

@@ -8,3 +8,3 @@ {

"parserOptions": {
"project": "packages/universal/shared/tests/tsconfig.json"
"project": "tsconfig.json"
}

@@ -11,0 +11,0 @@ }

@@ -1,2 +0,2 @@

import { COORDINATION, REACTIVE, UNINITIALIZED } from "@starbeam/shared";
import { COORDINATION, TAG, UNINITIALIZED } from "@starbeam/shared";
import { describe, expect, test } from "vitest";

@@ -6,3 +6,3 @@

testSymbol(UNINITIALIZED, "UNINITIALIZED");
testSymbol(REACTIVE, "REACTIVE");
testSymbol(TAG, "TAG");
testSymbol(COORDINATION, "COORDINATION");

@@ -9,0 +9,0 @@ });

@@ -8,3 +8,3 @@ {

"scripts": {
"test:lint": "eslint",
"test:lint": "eslint ",
"test:types": "tsc -b"

@@ -11,0 +11,0 @@ },

@@ -12,3 +12,3 @@ {

"exclude": ["dist/**/*"],
"include": ["index.ts", "src/**/*.ts"]
"include": ["index.ts", "src/**/*.ts", "rollup.config.mjs"]
}
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