@flipfeatureflag/node 0.1.1

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.
@@ -0,0 +1,7 @@
1
+ import { FlipFlagClientOptions, FlipFlagClient } from '@flipfeatureflag/core';
2
+ export * from '@flipfeatureflag/core';
3
+ export { FlipFlagClientOptions } from '@flipfeatureflag/core';
4
+
5
+ declare function createClient(options: FlipFlagClientOptions): FlipFlagClient;
6
+
7
+ export { createClient };
@@ -0,0 +1,7 @@
1
+ import { FlipFlagClientOptions, FlipFlagClient } from '@flipfeatureflag/core';
2
+ export * from '@flipfeatureflag/core';
3
+ export { FlipFlagClientOptions } from '@flipfeatureflag/core';
4
+
5
+ declare function createClient(options: FlipFlagClientOptions): FlipFlagClient;
6
+
7
+ export { createClient };
package/dist/index.js ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ createClient: () => createClient
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+ var import_core = require("@flipfeatureflag/core");
28
+ __reExport(index_exports, require("@flipfeatureflag/core"), module.exports);
29
+ function createClient(options) {
30
+ return new import_core.FlipFlagClient(options);
31
+ }
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ createClient,
35
+ ...require("@flipfeatureflag/core")
36
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ // src/index.ts
2
+ import { FlipFlagClient } from "@flipfeatureflag/core";
3
+ export * from "@flipfeatureflag/core";
4
+ function createClient(options) {
5
+ return new FlipFlagClient(options);
6
+ }
7
+ export {
8
+ createClient
9
+ };
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@flipfeatureflag/node",
3
+ "version": "0.1.1",
4
+ "description": "flipFeatureFlag Node.js SDK",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs"
13
+ }
14
+ },
15
+ "sideEffects": false,
16
+ "scripts": {
17
+ "build": "tsup src/index.ts --format esm,cjs --dts"
18
+ },
19
+ "dependencies": {
20
+ "@flipfeatureflag/core": "0.1.0"
21
+ }
22
+ }
package/src/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { FlipFlagClient, FlipFlagClientOptions } from "@flipfeatureflag/core";
2
+
3
+ export type { FlipFlagClientOptions } from "@flipfeatureflag/core";
4
+ export * from "@flipfeatureflag/core";
5
+
6
+ export function createClient(options: FlipFlagClientOptions): FlipFlagClient {
7
+ return new FlipFlagClient(options);
8
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "include": ["src"]
4
+ }