File tree Expand file tree Collapse file tree
packages/openfeature-node-provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import express from "express" ;
22import "./bucket" ;
33import { EvaluationContext , OpenFeature } from "@openfeature/server-sdk" ;
4- import provider , { CreateTodosConfig } from "./bucket" ;
4+ import { CreateTodosConfig } from "./bucket" ;
55
66// In the following, we assume that targetingKey is a unique identifier for the user.
77type Context = EvaluationContext & {
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import app from "./app";
44// Initialize Bucket SDK before starting the server,
55// so that features are available when the server starts.
66bucket . initialize ( ) . then ( ( ) => {
7- console . log ( "Bucket initialized" ) ;
8-
97 // Start listening for requests only after Bucket is initialized,
108 // which guarantees that features are available.
119 app . listen ( process . env . PORT ?? 3000 , ( ) => {
Original file line number Diff line number Diff line change 2525 "publishConfig" : {
2626 "access" : " public"
2727 },
28- "main" : " ./dist/src/ index.js" ,
28+ "main" : " ./dist/index.js" ,
2929 "types" : " ./dist/types/index.d.ts" ,
30+ "exports" : {
31+ "." : {
32+ "types" : " ./dist/types/index.d.ts" ,
33+ "require" : " ./dist/index.js"
34+ }
35+ },
3036 "devDependencies" : {
3137 "@babel/core" : " ~7.24.7" ,
3238 "@bucketco/eslint-config" : " ~0.0.2" ,
You can’t perform that action at this time.
0 commit comments