goblin-laboratory 2.2.1 → 3.0.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.
package/.zou-flow CHANGED
@@ -1,3 +1,2 @@
1
1
  [update-version]
2
- freezed = true
3
2
  package-json = package.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-laboratory",
3
- "version": "2.2.1",
3
+ "version": "3.0.0",
4
4
  "description": "Laboratory",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -11,6 +11,7 @@ export default function importer(config) {
11
11
  files.forEach((file) => {
12
12
  let nameSpace;
13
13
  switch (kind) {
14
+ case 'tutorials':
14
15
  case 'file':
15
16
  nameSpace = file.replace(/^[\\/.]+/, '').replace(/\\/g, '/');
16
17
  break;
@@ -67,13 +67,13 @@ export default (state = fromJS({}), action = {}) => {
67
67
  return state;
68
68
  }
69
69
 
70
- const generation = action.data.get('generation');
70
+ const generation = action.data.generation;
71
71
  const nextGeneration = action.nextGeneration;
72
72
 
73
73
  if (generation === nextGeneration) {
74
- state = action.data.get('_xcraftPatch')
75
- ? patch(prevState, action.data.get('state'))
76
- : action.data.get('state');
74
+ state = action.data._xcraftPatch
75
+ ? patch(prevState, action.data.state)
76
+ : action.data.state;
77
77
  prevState = state;
78
78
  }
79
79
 
@@ -131,8 +131,8 @@ const transitMiddleware = (store) => (next) => (action) => {
131
131
  ) {
132
132
  action.data = helpers.fromXcraftJSON(action.data)[0].data;
133
133
 
134
- const generation = action.data.get('generation');
135
- if (action.data.get('_xcraftPatch')) {
134
+ const generation = action.data.generation;
135
+ if (action.data._xcraftPatch) {
136
136
  nextGeneration++;
137
137
 
138
138
  if (generation !== nextGeneration) {