@xpadev-net/niconicomments 0.2.14 → 0.2.17

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.
Files changed (2) hide show
  1. package/dist/bundle.js +6 -6
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- niconicomments.js v0.2.14
2
+ niconicomments.js v0.2.17
3
3
  (c) 2021 xpadev-net https://xpadev.net
4
4
  Released under the MIT License.
5
5
  */
@@ -119,10 +119,10 @@
119
119
  var parseDataStart = performance.now();
120
120
  var data_ = [];
121
121
  for (var i = 0; i < data.length; i++) {
122
- for (var key in data[i]) {
123
- var val = data[i];
124
- if (!val)
125
- continue;
122
+ var val = data[i];
123
+ if (!val)
124
+ continue;
125
+ for (var key in val) {
126
126
  var value = val[key];
127
127
  if (isApiChat(value) && value["deleted"] !== 1) {
128
128
  var tmpParam = {
@@ -968,7 +968,7 @@
968
968
  return string;
969
969
  };
970
970
  var isApiChat = function (item) {
971
- return !!item.chat;
971
+ return item.no && item.vpos && item.content;
972
972
  };
973
973
  var logger = function (msg) {
974
974
  if (isDebug)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpadev-net/niconicomments",
3
- "version": "0.2.14",
3
+ "version": "0.2.17",
4
4
  "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/dts/main.d.ts",