@launchdarkly/akamai-server-base-sdk 0.3.0 → 0.4.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.
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@launchdarkly/akamai-server-base-sdk",
3
+ "version": "0.4.0",
4
+ "description": "Akamai LaunchDarkly EdgeWorker SDK",
5
+ "homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/akamai-base",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/launchdarkly/js-core.git"
9
+ },
10
+ "license": "Apache-2.0",
11
+ "packageManager": "yarn@3.4.1",
12
+ "keywords": [
13
+ "launchdarkly",
14
+ "akamai",
15
+ "edge",
16
+ "worker"
17
+ ],
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "import": {
22
+ "types": "./dist/esm/src/index.d.ts",
23
+ "default": "./dist/esm/bundle.es.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/cjs/src/index.d.ts",
27
+ "default": "./dist/cjs/bundle.cjs.js"
28
+ }
29
+ }
30
+ },
31
+ "main": "./dist/cjs/bundle.cjs.js",
32
+ "types": "./dist/cjs/src/index.d.ts",
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "scripts": {
37
+ "doc": "npx typedoc --name \"$(../../../scripts/doc-name.sh .)\" --readme none --entryPointStrategy resolve src/index.ts",
38
+ "build": "rollup -c rollup.config.js",
39
+ "clean": "rimraf dist",
40
+ "tsw": "yarn tsc --watch",
41
+ "start": "rimraf dist && yarn tsw",
42
+ "lint": "eslint . --ext .ts",
43
+ "prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",
44
+ "test": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --ci --runInBand",
45
+ "coverage": "yarn test --coverage",
46
+ "check": "yarn prettier && yarn lint && yarn build && yarn test && yarn doc"
47
+ },
48
+ "devDependencies": {
49
+ "@rollup/plugin-commonjs": "^25.0.0",
50
+ "@rollup/plugin-node-resolve": "^15.0.2",
51
+ "@rollup/plugin-terser": "^0.4.3",
52
+ "@rollup/plugin-typescript": "^11.1.1",
53
+ "@types/crypto-js": "^4.1.1",
54
+ "@types/jest": "^29.5.1",
55
+ "@typescript-eslint/eslint-plugin": "^5.57.0",
56
+ "@typescript-eslint/parser": "^5.57.0",
57
+ "eslint": "^8.37.0",
58
+ "eslint-config-airbnb-base": "^15.0.0",
59
+ "eslint-config-airbnb-typescript": "^17.0.0",
60
+ "eslint-config-prettier": "^8.8.0",
61
+ "eslint-plugin-import": "^2.27.5",
62
+ "eslint-plugin-prettier": "^4.2.1",
63
+ "jest": "^29.5.0",
64
+ "launchdarkly-js-test-helpers": "^2.2.0",
65
+ "prettier": "^2.8.7",
66
+ "rimraf": "^5.0.0",
67
+ "rollup": "^3.23.0",
68
+ "rollup-plugin-generate-package-json": "^3.2.0",
69
+ "ts-jest": "^29.1.0",
70
+ "typedoc": "0.24.7",
71
+ "typescript": "^5.0.4"
72
+ },
73
+ "dependencies": {
74
+ "@launchdarkly/akamai-edgeworker-sdk-common": "^0.2.1",
75
+ "@launchdarkly/js-server-sdk-common": "^1.0.4"
76
+ }
77
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This is the API reference for the Akamai LaunchDarkly SDK.
3
+ *
4
+ * In typical usage, you will call {@link init} once at startup time to obtain an instance of
5
+ * {@link LDClient}, which provides access to all of the SDK's functionality.
6
+ *
7
+ * For more information, see the SDK reference guide.
8
+ *
9
+ * @packageDocumentation
10
+ */
11
+ import { LDClient, LDOptions, EdgeProvider } from '@launchdarkly/akamai-edgeworker-sdk-common';
12
+ export * from '@launchdarkly/akamai-edgeworker-sdk-common';
13
+ export type AkamaiLDClientParams = {
14
+ sdkKey: string;
15
+ options?: LDOptions;
16
+ featureStoreProvider: EdgeProvider;
17
+ };
18
+ /**
19
+ * Initialize Launchdarkly client using Akamai's Edge KV as a feature store
20
+ * @param params ClientWithEdgeKVParams
21
+ * @returns
22
+ */
23
+ export declare const init: ({ options, sdkKey, featureStoreProvider, }: AkamaiLDClientParams) => LDClient;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAEL,QAAQ,EACR,SAAS,EACT,YAAY,EAEb,MAAM,4CAA4C,CAAC;AAGpD,cAAc,4CAA4C,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,YAAY,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,IAAI,+CAId,oBAAoB,KAAG,QAWzB,CAAC"}