Skip to content

Commit f2ee2fc

Browse files
committed
oops, actually return the value
1 parent 969cc25 commit f2ee2fc

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

js/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ if (process.platform == 'linux') {
77

88
const addon = bindings('customlabels');
99

10-
exports.printCur = addon.printCur;
11-
1210
const { createHook, executionAsyncId, triggerAsyncId, AsyncResource } = require( 'node:async_hooks');
1311

1412
const lsByAsyncId = new Map();
@@ -31,7 +29,7 @@ if (process.platform == 'linux') {
3129
withLabels = function(f, ...kvs) {
3230
ensureHook();
3331
const id = executionAsyncId();
34-
addon.withLabelsInternal(id, f, ...kvs);
32+
return addon.withLabelsInternal(id, f, ...kvs);
3533
};
3634
} else {
3735
withLabels = function(f, ...kvs) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polarsignals/custom-labels",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "test",
55
"main": "js/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)