redux-clerk2 2.0.25 → 2.0.27
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/lib/actions/Bulk.js +5 -1
- package/lib/actions/Create.js +5 -1
- package/lib/actions/Fetch.js +4 -0
- package/lib/actions/Perform.js +5 -1
- package/lib/actions/Remove.js +5 -1
- package/lib/actions/Update.js +5 -1
- package/lib/reducers/remove.js +4 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/actions/Bulk.js +5 -1
- package/src/actions/Create.js +5 -1
- package/src/actions/Fetch.js +4 -0
- package/src/actions/Perform.js +5 -1
- package/src/actions/Remove.js +5 -1
- package/src/actions/Update.js +5 -1
- package/src/reducers/remove.js +4 -0
package/lib/actions/Bulk.js
CHANGED
|
@@ -126,11 +126,15 @@ var Bulk = exports.Bulk = function (_BaseAction) {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
if (options && options.propertycode) {
|
|
130
|
+
propertycode = options.propertycode;
|
|
131
|
+
}
|
|
132
|
+
|
|
129
133
|
if (propertycode !== null) {
|
|
130
134
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
131
135
|
}
|
|
132
136
|
|
|
133
|
-
if (options.url) {
|
|
137
|
+
if (options && options.url) {
|
|
134
138
|
url = url + '/' + options.url;
|
|
135
139
|
}
|
|
136
140
|
|
package/lib/actions/Create.js
CHANGED
|
@@ -118,11 +118,15 @@ var Create = exports.Create = function (_BaseAction) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
if (options && options.propertycode) {
|
|
122
|
+
propertycode = options.propertycode;
|
|
123
|
+
}
|
|
124
|
+
|
|
121
125
|
if (propertycode !== null) {
|
|
122
126
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
123
127
|
}
|
|
124
128
|
|
|
125
|
-
if (options.url) {
|
|
129
|
+
if (options && options.url) {
|
|
126
130
|
url = url + "/" + options.url;
|
|
127
131
|
}
|
|
128
132
|
|
package/lib/actions/Fetch.js
CHANGED
|
@@ -120,6 +120,10 @@ var Fetch = exports.Fetch = function (_BaseAction) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
if (options && options.propertycode) {
|
|
124
|
+
propertycode = options.propertycode;
|
|
125
|
+
}
|
|
126
|
+
|
|
123
127
|
if (propertycode !== null) {
|
|
124
128
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
125
129
|
}
|
package/lib/actions/Perform.js
CHANGED
|
@@ -125,13 +125,17 @@ var Perform = exports.Perform = function (_BaseAction) {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
if (options && options.propertycode) {
|
|
129
|
+
propertycode = options.propertycode;
|
|
130
|
+
}
|
|
131
|
+
|
|
128
132
|
if (propertycode !== null) {
|
|
129
133
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
//console.log(`options`, options);
|
|
133
137
|
|
|
134
|
-
if (options.url) {
|
|
138
|
+
if (options && options.url) {
|
|
135
139
|
url = url + '/' + options.url;
|
|
136
140
|
}
|
|
137
141
|
|
package/lib/actions/Remove.js
CHANGED
|
@@ -127,11 +127,15 @@ var Remove = exports.Remove = function (_BaseAction) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
if (options && options.propertycode) {
|
|
131
|
+
propertycode = options.propertycode;
|
|
132
|
+
}
|
|
133
|
+
|
|
130
134
|
if (propertycode !== null) {
|
|
131
135
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
132
136
|
}
|
|
133
137
|
|
|
134
|
-
if (options.url) {
|
|
138
|
+
if (options && options.url) {
|
|
135
139
|
url = url + '/' + options.url;
|
|
136
140
|
}
|
|
137
141
|
|
package/lib/actions/Update.js
CHANGED
|
@@ -105,11 +105,15 @@ var Update = exports.Update = function (_BaseAction) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
if (options && options.propertycode) {
|
|
109
|
+
propertycode = options.propertycode;
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
if (propertycode !== null) {
|
|
109
113
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
110
114
|
}
|
|
111
115
|
|
|
112
|
-
if (options.url) {
|
|
116
|
+
if (options && options.url) {
|
|
113
117
|
url = url + '/' + options.url;
|
|
114
118
|
}
|
|
115
119
|
|
package/lib/reducers/remove.js
CHANGED
|
@@ -49,6 +49,7 @@ var start = exports.start = function start(state, action) {
|
|
|
49
49
|
map.get('instances').entrySeq().forEach(function (item) {
|
|
50
50
|
var instanceKey = item[0];
|
|
51
51
|
var instanceUids = item[1].get('data');
|
|
52
|
+
if (!instanceUids) return; // safety guard
|
|
52
53
|
var uidIndexInInstance = instanceUids.indexOf(removalId);
|
|
53
54
|
|
|
54
55
|
// If the uid of the item to be removed exists in this instance, remove it
|
|
@@ -88,6 +89,7 @@ var start = exports.start = function start(state, action) {
|
|
|
88
89
|
map.get('instances').entrySeq().forEach(function (item) {
|
|
89
90
|
var instanceKey = item[0];
|
|
90
91
|
var instanceUids = item[1].get('data');
|
|
92
|
+
if (!instanceUids) return; // safety guard
|
|
91
93
|
var uidIndexInInstance = instanceUids.indexOf(removalId);
|
|
92
94
|
|
|
93
95
|
// If the uid of the item to be removed exists in this instance, remove it
|
|
@@ -132,6 +134,7 @@ var success = exports.success = function success(state, action) {
|
|
|
132
134
|
map.get('instances').entrySeq().forEach(function (item) {
|
|
133
135
|
var instanceKey = item[0];
|
|
134
136
|
var instanceUids = item[1].get('data');
|
|
137
|
+
if (!instanceUids) return; // safety guard
|
|
135
138
|
var uidIndexInInstance = instanceUids.indexOf(removalId);
|
|
136
139
|
|
|
137
140
|
// If the uid of the item to be removed exists in this instance, remove it
|
|
@@ -169,6 +172,7 @@ var success = exports.success = function success(state, action) {
|
|
|
169
172
|
map.get('instances').entrySeq().forEach(function (item) {
|
|
170
173
|
var instanceKey = item[0];
|
|
171
174
|
var instanceUids = item[1].get('data');
|
|
175
|
+
if (!instanceUids) return; // safety guard
|
|
172
176
|
var uidIndexInInstance = instanceUids.indexOf(removalId);
|
|
173
177
|
|
|
174
178
|
// If the uid of the item to be removed exists in this instance, remove it
|
package/package.json
CHANGED
package/src/.DS_Store
CHANGED
|
Binary file
|
package/src/actions/Bulk.js
CHANGED
|
@@ -145,11 +145,15 @@ export class Bulk extends BaseAction {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
if(options && options.propertycode){
|
|
149
|
+
propertycode = options.propertycode;
|
|
150
|
+
}
|
|
151
|
+
|
|
148
152
|
if (propertycode !== null) {
|
|
149
153
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
150
154
|
}
|
|
151
155
|
|
|
152
|
-
if(options.url){
|
|
156
|
+
if(options && options.url){
|
|
153
157
|
url = `${url}/${options.url}`;
|
|
154
158
|
}
|
|
155
159
|
|
package/src/actions/Create.js
CHANGED
|
@@ -122,11 +122,15 @@ export class Create extends BaseAction {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
if(options && options.propertycode){
|
|
126
|
+
propertycode = options.propertycode;
|
|
127
|
+
}
|
|
128
|
+
|
|
125
129
|
if (propertycode !== null) {
|
|
126
130
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
127
131
|
}
|
|
128
132
|
|
|
129
|
-
if(options.url){
|
|
133
|
+
if(options && options.url){
|
|
130
134
|
url = `${url}/${options.url}`;
|
|
131
135
|
}
|
|
132
136
|
|
package/src/actions/Fetch.js
CHANGED
package/src/actions/Perform.js
CHANGED
|
@@ -103,13 +103,17 @@ export class Perform extends BaseAction {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
if(options && options.propertycode){
|
|
107
|
+
propertycode = options.propertycode;
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
if(propertycode !== null){
|
|
107
111
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
//console.log(`options`, options);
|
|
111
115
|
|
|
112
|
-
if(options.url){
|
|
116
|
+
if(options && options.url){
|
|
113
117
|
url = `${url}/${options.url}`;
|
|
114
118
|
}
|
|
115
119
|
|
package/src/actions/Remove.js
CHANGED
|
@@ -95,11 +95,15 @@ export class Remove extends BaseAction {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
if(options && options.propertycode){
|
|
99
|
+
propertycode = options.propertycode;
|
|
100
|
+
}
|
|
101
|
+
|
|
98
102
|
if(propertycode !== null){
|
|
99
103
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
if(options.url){
|
|
106
|
+
if(options && options.url){
|
|
103
107
|
url = `${url}/${options.url}`;
|
|
104
108
|
}
|
|
105
109
|
|
package/src/actions/Update.js
CHANGED
|
@@ -82,11 +82,15 @@ export class Update extends BaseAction {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
if(options && options.propertycode){
|
|
86
|
+
propertycode = options.propertycode;
|
|
87
|
+
}
|
|
88
|
+
|
|
85
89
|
if(propertycode !== null){
|
|
86
90
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
if(options.url){
|
|
93
|
+
if(options && options.url){
|
|
90
94
|
url = `${url}/${options.url}`;
|
|
91
95
|
}
|
|
92
96
|
|
package/src/reducers/remove.js
CHANGED
|
@@ -36,6 +36,7 @@ export const start = (state, action) => {
|
|
|
36
36
|
map.get('instances').entrySeq().forEach(item => {
|
|
37
37
|
const instanceKey = item[0]
|
|
38
38
|
const instanceUids = item[1].get('data')
|
|
39
|
+
if (!instanceUids) return; // safety guard
|
|
39
40
|
const uidIndexInInstance = instanceUids.indexOf(removalId)
|
|
40
41
|
|
|
41
42
|
// If the uid of the item to be removed exists in this instance, remove it
|
|
@@ -77,6 +78,7 @@ export const start = (state, action) => {
|
|
|
77
78
|
map.get('instances').entrySeq().forEach(item => {
|
|
78
79
|
const instanceKey = item[0]
|
|
79
80
|
const instanceUids = item[1].get('data')
|
|
81
|
+
if (!instanceUids) return; // safety guard
|
|
80
82
|
const uidIndexInInstance = instanceUids.indexOf(removalId)
|
|
81
83
|
|
|
82
84
|
// If the uid of the item to be removed exists in this instance, remove it
|
|
@@ -123,6 +125,7 @@ export const success = (state, action) => {
|
|
|
123
125
|
map.get('instances').entrySeq().forEach(item => {
|
|
124
126
|
const instanceKey = item[0]
|
|
125
127
|
const instanceUids = item[1].get('data')
|
|
128
|
+
if (!instanceUids) return; // safety guard
|
|
126
129
|
const uidIndexInInstance = instanceUids.indexOf(removalId)
|
|
127
130
|
|
|
128
131
|
// If the uid of the item to be removed exists in this instance, remove it
|
|
@@ -164,6 +167,7 @@ export const success = (state, action) => {
|
|
|
164
167
|
map.get('instances').entrySeq().forEach(item => {
|
|
165
168
|
const instanceKey = item[0]
|
|
166
169
|
const instanceUids = item[1].get('data')
|
|
170
|
+
if (!instanceUids) return; // safety guard
|
|
167
171
|
const uidIndexInInstance = instanceUids.indexOf(removalId)
|
|
168
172
|
|
|
169
173
|
// If the uid of the item to be removed exists in this instance, remove it
|