@rpcbase/server 0.356.0-tsbundlerserver.1 → 0.356.0

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.
Files changed (2) hide show
  1. package/get_object_id.ts +1 -1
  2. package/package.json +1 -1
package/get_object_id.ts CHANGED
@@ -17,7 +17,7 @@ assert(isHexadecimal(RB_TENANT_ID), "expected RB_TENANT_ID to be a hexadecimal")
17
17
  assert(RB_TENANT_ID.length === 8, "RB_TENANT_ID must be exactly 4 bytes (8 hex chars)")
18
18
 
19
19
  // generates a 12 bytes mongodb object id using the org id prefix or custom customer id
20
- export const get_object_id = (): string => {
20
+ export const get_object_id = (): mongoose.Types.ObjectId => {
21
21
  const ts_bytes = Math.floor(Date.now() / 1000).toString(16)
22
22
  expect(ts_bytes.length).toBe(8)
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.356.0-tsbundlerserver.1",
3
+ "version": "0.356.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "scripts": {