@pi-r/chrome 0.7.0 → 0.7.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.
Files changed (3) hide show
  1. package/index.d.ts +6 -6
  2. package/index.js +1 -3
  3. package/package.json +5 -5
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { IFileManager } from '@e-mc/types/lib';
2
-
3
- import type { ChromeDocumentConstructor, DocumentAsset } from './types';
4
-
5
- declare const Chrome: ChromeDocumentConstructor<IFileManager<DocumentAsset>>;
6
-
1
+ import type { IFileManager } from '@e-mc/types/lib';
2
+
3
+ import type { ChromeDocumentConstructor, DocumentAsset } from './types';
4
+
5
+ declare const Chrome: ChromeDocumentConstructor<IFileManager<DocumentAsset>>;
6
+
7
7
  export = Chrome;
package/index.js CHANGED
@@ -180,9 +180,7 @@ function spliceSource(source, startIndex, endIndex, pattern, leading = '', trail
180
180
  if (leading || trailing) {
181
181
  content += getNewlineString(leading, trailing);
182
182
  }
183
- if (pattern && content) {
184
- pattern.lastIndex = startIndex + content.length;
185
- }
183
+ pattern.lastIndex = startIndex + content.length;
186
184
  return spliceString(source, startIndex, endIndex, content);
187
185
  }
188
186
  function hasCondition(data, condition) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/chrome",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Chrome document constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -20,9 +20,9 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/cloud": "^0.9.0",
24
- "@e-mc/core": "^0.9.0",
25
- "@e-mc/document": "^0.9.0",
26
- "@e-mc/types": "^0.9.0"
23
+ "@e-mc/cloud": "^0.9.2",
24
+ "@e-mc/core": "^0.9.2",
25
+ "@e-mc/document": "^0.9.2",
26
+ "@e-mc/types": "^0.9.2"
27
27
  }
28
28
  }