@servicetitan/launchdarkly-service 28.3.2 → 28.3.3
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.
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LDServiceProvider: FC<PropsWithChildren>;
|
|
1
|
+
export declare const LDServiceProvider: (({ children }: any) => any) & import("@servicetitan/react-ioc/dist/provide").WrappedComponent<({ children }: any) => any>;
|
|
3
2
|
//# sourceMappingURL=ld-service-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-service-provider.d.ts","sourceRoot":"","sources":["../src/ld-service-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ld-service-provider.d.ts","sourceRoot":"","sources":["../src/ld-service-provider.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB,4HAEA,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, useOptionalDependencies } from '@servicetitan/react-ioc';
|
|
1
|
+
import { provide } from '@servicetitan/react-ioc';
|
|
3
2
|
import { getLDClient } from './get-ld-client';
|
|
4
3
|
import { LD_SERVICE_TOKEN } from './types';
|
|
5
4
|
const ldService = {
|
|
6
5
|
getClient: getLDClient,
|
|
7
6
|
};
|
|
8
|
-
export const LDServiceProvider = ({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
return (_jsx(Provider, { singletons: [{ provide: LD_SERVICE_TOKEN, useValue: ldService }], children: children }));
|
|
13
|
-
};
|
|
7
|
+
export const LDServiceProvider = provide({
|
|
8
|
+
singletons: [{ provide: LD_SERVICE_TOKEN, useValue: ldService, inherit: true }],
|
|
9
|
+
})(({ children }) => children);
|
|
14
10
|
//# sourceMappingURL=ld-service-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ld-service-provider.js","sourceRoot":"","sources":["../src/ld-service-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ld-service-provider.js","sourceRoot":"","sources":["../src/ld-service-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAEtD,MAAM,SAAS,GAAc;IACzB,SAAS,EAAE,WAAW;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;IACrC,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;CAClF,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/launchdarkly-service",
|
|
3
|
-
"version": "28.3.
|
|
3
|
+
"version": "28.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/launchdarkly-service",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"src"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@servicetitan/log-service": "28.3.
|
|
20
|
-
"@servicetitan/react-ioc": "28.3.
|
|
19
|
+
"@servicetitan/log-service": "28.3.3",
|
|
20
|
+
"@servicetitan/react-ioc": "28.3.3",
|
|
21
21
|
"@testing-library/dom": "^10.4.0",
|
|
22
22
|
"@testing-library/jest-dom": "^6.6.3",
|
|
23
23
|
"@testing-library/react": "^16.1.0",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"react": "~18.3.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@servicetitan/log-service": "28.3.
|
|
31
|
-
"@servicetitan/react-ioc": "28.3.
|
|
30
|
+
"@servicetitan/log-service": "28.3.3",
|
|
31
|
+
"@servicetitan/react-ioc": "28.3.3",
|
|
32
32
|
"launchdarkly-js-client-sdk": "3.5.0",
|
|
33
33
|
"launchdarkly-react-client-sdk": "^3.6.0",
|
|
34
34
|
"mobx": ">= 6.13.5",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"cli": {
|
|
41
41
|
"webpack": false
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "bac07173ff75001b7ad197e77bc1f6b23c531174"
|
|
44
44
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FC, PropsWithChildren } from 'react';
|
|
1
|
+
import { provide } from '@servicetitan/react-ioc';
|
|
3
2
|
|
|
4
3
|
import { getLDClient } from './get-ld-client';
|
|
5
4
|
import { LD_SERVICE_TOKEN, LDService } from './types';
|
|
@@ -8,14 +7,6 @@ const ldService: LDService = {
|
|
|
8
7
|
getClient: getLDClient,
|
|
9
8
|
};
|
|
10
9
|
|
|
11
|
-
export const LDServiceProvider
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Provider singletons={[{ provide: LD_SERVICE_TOKEN, useValue: ldService }]}>
|
|
18
|
-
{children}
|
|
19
|
-
</Provider>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
10
|
+
export const LDServiceProvider = provide({
|
|
11
|
+
singletons: [{ provide: LD_SERVICE_TOKEN, useValue: ldService, inherit: true }],
|
|
12
|
+
})(({ children }) => children);
|