@ossy/sdk-react 0.9.0 → 0.9.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.
- package/build/public.index.d.ts +6 -5
- package/build/sdk-react/src/removeBy.js +1 -1
- package/build/sdk-react/src/replaceBy.js +1 -1
- package/build/types/asyncStatus.d.ts +5 -4
- package/build/types/removeBy.d.ts +1 -1
- package/build/types/replaceBy.d.ts +1 -1
- package/package.json +2 -3
- package/build/node_modules/ramda/es/curry.js +0 -1
- package/build/node_modules/ramda/es/equals.js +0 -1
- package/build/node_modules/ramda/es/findIndex.js +0 -1
- package/build/node_modules/ramda/es/internal/_arrayFromIterator.js +0 -1
- package/build/node_modules/ramda/es/internal/_equals.js +0 -1
- package/build/node_modules/ramda/es/internal/_functionName.js +0 -1
- package/build/node_modules/ramda/es/internal/_includesWith.js +0 -1
- package/build/node_modules/ramda/es/internal/_objectIs.js +0 -1
- package/build/node_modules/ramda/es/internal/_reduced.js +0 -1
- package/build/node_modules/ramda/es/internal/_xfindIndex.js +0 -1
- package/build/node_modules/ramda/es/prop.js +0 -1
- package/build/node_modules/ramda/es/propEq.js +0 -1
- package/build/node_modules/ramda/es/type.js +0 -1
package/build/public.index.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import * as _ossy_sdk from '@ossy/sdk';
|
|
|
3
3
|
import { SDK } from '@ossy/sdk';
|
|
4
4
|
|
|
5
5
|
declare const AsyncStatus: {
|
|
6
|
-
NotInitialized:
|
|
7
|
-
Loading:
|
|
8
|
-
Success:
|
|
9
|
-
Error:
|
|
6
|
+
readonly NotInitialized: "NotInitialized";
|
|
7
|
+
readonly Loading: "Loading";
|
|
8
|
+
readonly Success: "Success";
|
|
9
|
+
readonly Error: "Error";
|
|
10
10
|
};
|
|
11
|
+
type AsyncStatusType = (typeof AsyncStatus)[keyof typeof AsyncStatus];
|
|
11
12
|
|
|
12
13
|
declare const useApiTokens: () => {
|
|
13
14
|
status: any;
|
|
@@ -122,4 +123,4 @@ declare const useUsers: () => {
|
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
export { AsyncStatus, AuthenticationStatus, Context, WorkspaceProvider, useApiTokens, useAuthentication, useQuery, useResource, useResourceTemplate, useResources, useSdk, useUser, useUsers, useWorkspace, useWorkspaces };
|
|
125
|
-
export type { Config };
|
|
126
|
+
export type { AsyncStatusType, Config };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"../../node_modules/ramda/es/
|
|
1
|
+
import r from"../../node_modules/ramda/es/remove.js";var e=function(e,n,o){var t=o.findIndex(function(r){return r[e]===n});return-1===t?o:r(t,1,o)};export{e as removeBy};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"../../node_modules/ramda/es/
|
|
1
|
+
import r from"../../node_modules/ramda/es/map.js";var n=function(n,o,e){return r(function(r){return r[n]===o[n]?o:r},e)};export{n as replaceBy};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const AsyncStatus: {
|
|
2
|
-
NotInitialized:
|
|
3
|
-
Loading:
|
|
4
|
-
Success:
|
|
5
|
-
Error:
|
|
2
|
+
readonly NotInitialized: "NotInitialized";
|
|
3
|
+
readonly Loading: "Loading";
|
|
4
|
+
readonly Success: "Success";
|
|
5
|
+
readonly Error: "Error";
|
|
6
6
|
};
|
|
7
|
+
export type AsyncStatusType = (typeof AsyncStatus)[keyof typeof AsyncStatus];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const removeBy:
|
|
1
|
+
export declare const removeBy: <T extends Record<string, unknown>>(prop: string, propValue: unknown, list: T[]) => T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const replaceBy:
|
|
1
|
+
export declare const replaceBy: <T extends Record<string, unknown>>(prop: string, item: T, list: T[]) => T[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/sdk-react",
|
|
3
3
|
"description": "Software Development Kit React",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"url": "git://github.com/ossy-se/packages/sdk-react",
|
|
6
6
|
"source": "src/public.index.ts",
|
|
7
7
|
"module": "build/sdk-react/src/public.index.js",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"jwt-decode": "^4.0.0",
|
|
35
34
|
"ramda": "^0.32.0"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
@@ -56,5 +55,5 @@
|
|
|
56
55
|
"/build",
|
|
57
56
|
"README.md"
|
|
58
57
|
],
|
|
59
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "009330a43cf08e0cab806434b5f654401924af95"
|
|
60
59
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./internal/_curry1.js";import t from"./curryN.js";var n=r(function(r){return t(r.length,r)});export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./internal/_curry2.js";import t from"./internal/_equals.js";var n=r(function(r,n){return t(r,n,[],[])});export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./internal/_curry2.js";import n from"./internal/_dispatchable.js";import t from"./internal/_xfindIndex.js";var e=r(n([],t,function(r,n){for(var t=0,e=n.length;t<e;){if(r(n[t]))return t;t+=1}return-1}));export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){for(var n,r=[];!(n=e.next()).done;)r.push(n.value);return r}export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"./_arrayFromIterator.js";import a from"./_includesWith.js";import r from"./_functionName.js";import t from"./_has.js";import n from"./_objectIs.js";import s from"../keys.js";import c from"../type.js";function o(r,t,n,s){var c=e(r),o=e(t);function i(e,a){return u(e,a,n.slice(),s.slice())}return!a(function(e,r){return!a(i,r,e)},o,c)}function u(e,a,i,f){if(n(e,a))return!0;var l=c(e);if(l!==c(a))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof a["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](a)&&"function"==typeof a["fantasy-land/equals"]&&a["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof a.equals)return"function"==typeof e.equals&&e.equals(a)&&"function"==typeof a.equals&&a.equals(e);switch(l){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===r(e.constructor))return e===a;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof a||!n(e.valueOf(),a.valueOf()))return!1;break;case"Date":if(!n(e.valueOf(),a.valueOf()))return!1;break;case"Error":return e.name===a.name&&e.message===a.message;case"RegExp":if(e.source!==a.source||e.global!==a.global||e.ignoreCase!==a.ignoreCase||e.multiline!==a.multiline||e.sticky!==a.sticky||e.unicode!==a.unicode)return!1}for(var y=i.length-1;y>=0;){if(i[y]===e)return f[y]===a;y-=1}switch(l){case"Map":return e.size===a.size&&o(e.entries(),a.entries(),i.concat([e]),f.concat([a]));case"Set":return e.size===a.size&&o(e.values(),a.values(),i.concat([e]),f.concat([a]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var m=s(e);if(m.length!==s(a).length)return!1;var p=i.concat([e]),g=f.concat([a]);for(y=m.length-1;y>=0;){var A=m[y];if(!t(A,a)||!u(a[A],e[A],p,g))return!1;y-=1}return!0}export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(n){var t=String(n).match(/^function (\w*)/);return null==t?"":t[1]}export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(r,t,e){for(var n=0,f=e.length;n<f;){if(r(t,e[n]))return!0;n+=1}return!1}export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"./_reduced.js";import r from"./_xfBase.js";var n=function(){function n(t,r){this.xf=r,this.f=t,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=r.init,n.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},n.prototype["@@transducer/step"]=function(r,n){return this.idx+=1,this.f(n)&&(this.found=!0,r=t(this.xf["@@transducer/step"](r,this.idx))),r},n}();function i(t){return function(r){return new n(t,r)}}export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./internal/_curry2.js";import o from"./internal/_prop.js";var t=r(o);export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./internal/_curry3.js";import o from"./prop.js";import t from"./equals.js";var m=r(function(r,m,p){return t(r,o(m,p))});export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./internal/_curry1.js";var t=r(function(r){return null===r?"Null":void 0===r?"Undefined":Object.prototype.toString.call(r).slice(8,-1)});export{t as default};
|