@openshift/dynamic-plugin-sdk-utils
Advanced tools
Comparing version 1.0.0-alpha1 to 1.0.0-alpha2
@@ -31,2 +31,6 @@ /** | ||
/** | ||
* Checks if the {@link UtilsConfig} is set. | ||
*/ | ||
declare const isUtilsConfigSet: () => boolean; | ||
/** | ||
* Set the {@link UtilsConfig} reference. | ||
@@ -42,3 +46,3 @@ * | ||
*/ | ||
declare const getUtilsConfig: () => Readonly<UtilsConfig>; | ||
declare const getUtilsConfig: () => UtilsConfig; | ||
@@ -144,2 +148,2 @@ declare const commonFetch: (url: string, requestInit?: RequestInit | undefined, timeout?: number | undefined, isK8sAPIRequest?: boolean | undefined) => Promise<Response>; | ||
export { UtilsConfig, commonFetch, commonFetchJSON, commonFetchText, getUtilsConfig, k8sCreateResource, k8sDeleteResource, k8sGetResource, k8sListResource, k8sListResourceItems, k8sPatchResource, k8sUpdateResource, setUtilsConfig }; | ||
export { UtilsConfig, commonFetch, commonFetchJSON, commonFetchText, getUtilsConfig, isUtilsConfigSet, k8sCreateResource, k8sDeleteResource, k8sGetResource, k8sListResource, k8sListResourceItems, k8sPatchResource, k8sUpdateResource, setUtilsConfig }; |
@@ -5,5 +5,5 @@ /* | ||
@openshift/dynamic-plugin-sdk-utils version 1.0.0-alpha1 | ||
February 28, 2022 at 10:08:57 PM GMT+1 | ||
commit bacde5b1d2c25bca0371233f940c8dc9f0ffa739 | ||
@openshift/dynamic-plugin-sdk-utils version 1.0.0-alpha2 | ||
March 3, 2022 at 7:38:40 PM GMT+1 | ||
commit 407651eaba1125c324614a58a68c6e9566cf2bf8 | ||
*/ | ||
@@ -15,2 +15,8 @@ | ||
/** | ||
* Checks if the {@link UtilsConfig} is set. | ||
*/ | ||
const isUtilsConfigSet = () => { | ||
return config !== undefined; | ||
}; | ||
/** | ||
* Set the {@link UtilsConfig} reference. | ||
@@ -187,2 +193,2 @@ * | ||
export { commonFetch, commonFetchJSON, commonFetchText, getUtilsConfig, k8sCreateResource, k8sDeleteResource, k8sGetResource, k8sListResource, k8sListResourceItems, k8sPatchResource, k8sUpdateResource, setUtilsConfig }; | ||
export { commonFetch, commonFetchJSON, commonFetchText, getUtilsConfig, isUtilsConfigSet, k8sCreateResource, k8sDeleteResource, k8sGetResource, k8sListResource, k8sListResourceItems, k8sPatchResource, k8sUpdateResource, setUtilsConfig }; |
{ | ||
"name": "@openshift/dynamic-plugin-sdk-utils", | ||
"version": "1.0.0-alpha1", | ||
"version": "1.0.0-alpha2", | ||
"description": "Provides Kubernetes and React utilities", | ||
@@ -19,3 +19,3 @@ "license": "Apache-2.0", | ||
"prepack": "yarn build", | ||
"prepublish": "yarn test", | ||
"prepublishOnly": "yarn test", | ||
"build": "rm -rf dist && rollup -c", | ||
@@ -26,7 +26,17 @@ "lint": "yarn lint:run --ext .ts,.tsx src rollup.config.js", | ||
"peerDependencies": { | ||
"@openshift/dynamic-plugin-sdk": "^1.0.0", | ||
"lodash-es": "^4.17.21", | ||
"react": "^17.0.2" | ||
"react": "^17.0.2", | ||
"react-redux": "^7.2.2", | ||
"redux": "^4.1.2", | ||
"redux-thunk": "^2.4.1" | ||
}, | ||
"dependencies": { | ||
"immutable": "^3.8.2", | ||
"lodash-es": "^4.17.21", | ||
"typesafe-actions": "^4.4.2" | ||
}, | ||
"devDependencies": { | ||
"@monorepo/common": "0.0.0-fixed", | ||
"@openshift/dynamic-plugin-sdk": "link:../lib-core", | ||
"@rollup/plugin-node-resolve": "^13.1.1", | ||
@@ -36,4 +46,6 @@ "@rollup/plugin-typescript": "^8.3.0", | ||
"@types/react": "^17.0.37", | ||
"lodash-es": "^4.17.21", | ||
"react": "^17.0.2", | ||
"react-redux": "^7.2.2", | ||
"redux": "^4.1.2", | ||
"redux-thunk": "^2.4.1", | ||
"rollup": "^2.61.1", | ||
@@ -40,0 +52,0 @@ "rollup-plugin-analyzer": "^4.0.0", |
16803
321
9
15
+ Addedimmutable@^3.8.2
+ Addedlodash-es@^4.17.21
+ Addedtypesafe-actions@^4.4.2
+ Added@babel/runtime@7.26.9(transitive)
+ Added@openshift/dynamic-plugin-sdk@1.0.0(transitive)
+ Added@types/hoist-non-react-statics@3.3.6(transitive)
+ Added@types/lodash@4.17.15(transitive)
+ Added@types/react@19.0.8(transitive)
+ Added@types/react-redux@7.1.34(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedimmutable@3.8.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addednanoclone@0.2.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedproperty-expr@2.0.6(transitive)
+ Addedreact-is@16.13.117.0.2(transitive)
+ Addedreact-redux@7.2.9(transitive)
+ Addedredux@4.2.1(transitive)
+ Addedredux-thunk@2.4.2(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedsemver@7.7.1(transitive)
+ Addedtoposort@2.0.2(transitive)
+ Addedtypesafe-actions@4.4.2(transitive)
+ Addedyup@0.32.11(transitive)