@lwrjs/fs-asset-provider 0.11.0-alpha.8 → 0.11.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/build/cjs/index.cjs +2 -1
- package/build/es/index.js +2 -1
- package/package.json +5 -4
package/build/cjs/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ __export(exports, {
|
|
|
28
28
|
});
|
|
29
29
|
var import_fs_extra = __toModule(require("fs-extra"));
|
|
30
30
|
var import_path = __toModule(require("path"));
|
|
31
|
+
var import_diagnostics = __toModule(require("@lwrjs/diagnostics"));
|
|
31
32
|
var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
|
|
32
33
|
function hash(filePath) {
|
|
33
34
|
const result = import_fs_extra.default.statSync(filePath);
|
|
@@ -94,7 +95,7 @@ var FsAssetProvider = class {
|
|
|
94
95
|
this.watcher.add(assetPath2);
|
|
95
96
|
}
|
|
96
97
|
} else {
|
|
97
|
-
|
|
98
|
+
import_diagnostics.logger.debug(`[${this.name}] Asset ${fullAssetPath} did not exist on filesystem at ${assetPath2}`);
|
|
98
99
|
return void 0;
|
|
99
100
|
}
|
|
100
101
|
}
|
package/build/es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'fs-extra';
|
|
2
2
|
import { extname } from 'path';
|
|
3
|
-
import { logger
|
|
3
|
+
import { logger } from '@lwrjs/diagnostics';
|
|
4
|
+
import { mimeLookup, normalizeAssetSpecifier } from '@lwrjs/shared-utils';
|
|
4
5
|
function hash(filePath) {
|
|
5
6
|
const result = fs.statSync(filePath);
|
|
6
7
|
return (result.mtimeMs * 10000).toString();
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.11.0
|
|
7
|
+
"version": "0.11.0",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"build/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lwrjs/
|
|
33
|
+
"@lwrjs/diagnostics": "0.11.0",
|
|
34
|
+
"@lwrjs/shared-utils": "0.11.0",
|
|
34
35
|
"fs-extra": "^11.1.1"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@lwrjs/types": "0.11.0
|
|
38
|
+
"@lwrjs/types": "0.11.0"
|
|
38
39
|
},
|
|
39
40
|
"engines": {
|
|
40
41
|
"node": ">=16.0.0"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "fbc883ea90a12672ce6f1adc2201144fda8762bd"
|
|
43
44
|
}
|