@e-mc/document 0.9.6 → 0.10.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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.9.6/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.0/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { DataSource, ViewEngine } from "./squared";
@@ -78,7 +78,7 @@ interface DocumentConstructor extends ModuleConstructor {
78
78
  updateGradle(source: string, namespaces: string[], value: string, options?: UpdateGradleOptions): string;
79
79
  generateLintTable(messages: LintMessage[], options: GenerateLintTableOptions): LogComponent[];
80
80
  cleanup?(this: IFileManager, instance: IDocument): Promise<unknown>;
81
- sanitizeAssets?(assets: ExternalAsset[], exclusions?: ExternalAsset[]): ExternalAsset[];
81
+ sanitizeAssets?(assets: ExternalAsset[], exclusions?: unknown[]): ExternalAsset[];
82
82
  readonly prototype: IDocument;
83
83
  new(module?: DocumentModule, ...args: unknown[]): IDocument;
84
84
  }
@@ -183,14 +183,14 @@ NOTE: **@e-mc/document** is an abstract base class and cannot be instantiated. *
183
183
 
184
184
  ## References
185
185
 
186
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/squared.d.ts
187
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/asset.d.ts
188
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/core.d.ts
189
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/document.d.ts
190
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/filemanager.d.ts
191
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/logger.d.ts
192
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/settings.d.ts
193
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/watch.d.ts
186
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/squared.d.ts
187
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/asset.d.ts
188
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/core.d.ts
189
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/document.d.ts
190
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/filemanager.d.ts
191
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/logger.d.ts
192
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/settings.d.ts
193
+ - https://www.unpkg.com/@e-mc/types@0.10.0/lib/watch.d.ts
194
194
 
195
195
  ## LICENSE
196
196
 
package/asset.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
- exports.setInitialValue = exports.isEqual = void 0;
2
+ exports.isEqual = isEqual;
3
+ exports.setInitialValue = setInitialValue;
3
4
  function isEqual(item, other) {
4
- return !!(item.id && item.id === other.id || item.uri === other.uri && item.pathname === other.pathname && item.filename === other.filename && item.pathname && item.filename);
5
+ return !!(item.id && item.id === other.id || item.uri === other.uri && item.pathname && item.filename && item.pathname === other.pathname && item.filename === other.filename);
5
6
  }
6
- exports.isEqual = isEqual;
7
7
  function setInitialValue(file, cacheable = true) {
8
8
  return file.initialValue || (file.initialValue = { pathname: file.pathname, filename: file.filename, mimeType: file.mimeType, localUri: file.localUri, inlineFilename: file.inlineFilename, cacheable });
9
9
  }
10
- exports.setInitialValue = setInitialValue;
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { DocumentConstructor, IFileManager } from '../types/lib';
2
-
3
- declare const Document: DocumentConstructor<IFileManager>;
4
-
1
+ import type { DocumentConstructor, IFileManager } from '../types/lib';
2
+
3
+ declare const Document: DocumentConstructor<IFileManager>;
4
+
5
5
  export = Document;