@localazy/strapi-plugin 1.0.1 → 1.0.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.
package/README.md CHANGED
@@ -65,6 +65,8 @@ localazy: {
65
65
  */
66
66
  populateDefaultDepth?: number, // default is 5
67
67
  populateMaxDepth?: number, // default is 10
68
+ skipCreatorFields?: boolean, // default is false
69
+ enableSocketIO?: boolean, // default is true
68
70
  },
69
71
  },
70
72
  ```
@@ -811,7 +811,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
811
811
  baseMerge(object, source, srcIndex);
812
812
  });
813
813
  const name = "@localazy/strapi-plugin";
814
- const version$1 = "1.0.1";
814
+ const version$1 = "1.0.3";
815
815
  const description = "The official Strapi Plugin by Localazy.";
816
816
  const keywords = [
817
817
  "strapi",
@@ -885,7 +885,7 @@ const dependencies = {
885
885
  const devDependencies = {
886
886
  "@david-vaclavek/deep-keys": "^0.5.0",
887
887
  "@localazy/api-client": "^2.1.6",
888
- "@localazy/conventional-changelog-preset": "^1.2.9",
888
+ "@localazy/conventional-changelog-preset": "^1.2.10",
889
889
  "@localazy/generic-connector-client": "^0.3.0",
890
890
  "@strapi/design-system": "^2.0.0-rc.14",
891
891
  "@strapi/icons": "^2.0.0-rc.14",
@@ -21684,17 +21684,19 @@ const bootstrap = ({ strapi: strapi2 }) => {
21684
21684
  }
21685
21685
  }
21686
21686
  });
21687
- process.nextTick(async () => {
21688
- const io2 = new Server2(strapi2.server.httpServer, {
21689
- cors: {
21690
- origin: "*",
21691
- methods: ["GET", "POST"]
21692
- },
21693
- // this must be a constructor
21694
- wsEngine: require$$8.WebSocketServer
21687
+ if (strapi2.plugin(PLUGIN_NAME)?.config("enableSocketIO", true)) {
21688
+ process.nextTick(async () => {
21689
+ const io2 = new Server2(strapi2.server.httpServer, {
21690
+ cors: {
21691
+ origin: "*",
21692
+ methods: ["GET", "POST"]
21693
+ },
21694
+ // this must be a constructor
21695
+ wsEngine: require$$8.WebSocketServer
21696
+ });
21697
+ strapi2.StrapIO = io2;
21695
21698
  });
21696
- strapi2.StrapIO = io2;
21697
- });
21699
+ }
21698
21700
  };
21699
21701
  const destroy = ({ strapi: strapi2 }) => {
21700
21702
  };
@@ -798,7 +798,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
798
798
  baseMerge(object, source, srcIndex);
799
799
  });
800
800
  const name = "@localazy/strapi-plugin";
801
- const version$1 = "1.0.1";
801
+ const version$1 = "1.0.3";
802
802
  const description = "The official Strapi Plugin by Localazy.";
803
803
  const keywords = [
804
804
  "strapi",
@@ -872,7 +872,7 @@ const dependencies = {
872
872
  const devDependencies = {
873
873
  "@david-vaclavek/deep-keys": "^0.5.0",
874
874
  "@localazy/api-client": "^2.1.6",
875
- "@localazy/conventional-changelog-preset": "^1.2.9",
875
+ "@localazy/conventional-changelog-preset": "^1.2.10",
876
876
  "@localazy/generic-connector-client": "^0.3.0",
877
877
  "@strapi/design-system": "^2.0.0-rc.14",
878
878
  "@strapi/icons": "^2.0.0-rc.14",
@@ -21671,17 +21671,19 @@ const bootstrap = ({ strapi: strapi2 }) => {
21671
21671
  }
21672
21672
  }
21673
21673
  });
21674
- process.nextTick(async () => {
21675
- const io2 = new Server2(strapi2.server.httpServer, {
21676
- cors: {
21677
- origin: "*",
21678
- methods: ["GET", "POST"]
21679
- },
21680
- // this must be a constructor
21681
- wsEngine: WebSocketServer
21674
+ if (strapi2.plugin(PLUGIN_NAME)?.config("enableSocketIO", true)) {
21675
+ process.nextTick(async () => {
21676
+ const io2 = new Server2(strapi2.server.httpServer, {
21677
+ cors: {
21678
+ origin: "*",
21679
+ methods: ["GET", "POST"]
21680
+ },
21681
+ // this must be a constructor
21682
+ wsEngine: WebSocketServer
21683
+ });
21684
+ strapi2.StrapIO = io2;
21682
21685
  });
21683
- strapi2.StrapIO = io2;
21684
- });
21686
+ }
21685
21687
  };
21686
21688
  const destroy = ({ strapi: strapi2 }) => {
21687
21689
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localazy/strapi-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "The official Strapi Plugin by Localazy.",
5
5
  "keywords": [
6
6
  "strapi",
@@ -80,7 +80,7 @@
80
80
  "devDependencies": {
81
81
  "@david-vaclavek/deep-keys": "^0.5.0",
82
82
  "@localazy/api-client": "^2.1.6",
83
- "@localazy/conventional-changelog-preset": "^1.2.9",
83
+ "@localazy/conventional-changelog-preset": "^1.2.10",
84
84
  "@localazy/generic-connector-client": "^0.3.0",
85
85
  "@strapi/design-system": "^2.0.0-rc.14",
86
86
  "@strapi/icons": "^2.0.0-rc.14",