-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #341 from xylabs/feature/config-glob-path-handling
Config Parsing
- Loading branch information
Showing
9 changed files
with
200 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ words: | |
- pako | ||
- printenv | ||
- proxied | ||
- regexes | ||
- repost | ||
- sandboxing | ||
- snyk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"env": { | ||
"NODE_ENV": "development" | ||
}, | ||
"exec": "ts-node-script ./src/bin/start-meta.ts", | ||
"ext": ".ts", | ||
"ignore": ["**/*.spec.ts"], | ||
"watch": ["./src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,17 @@ | |
"url": "https://github.com/xylabs/sdk-meta-server-nodejs/issues" | ||
}, | ||
"bin": { | ||
"docker-build": "dist/cjs/bin/docker-build.js", | ||
"generate-dotenv": "dist/cjs/bin/generate-dotenv.js", | ||
"start-meta": "dist/cjs/bin/start-meta.js" | ||
"docker-build": "dist/node/bin/docker-build.js", | ||
"generate-dotenv": "dist/node/bin/generate-dotenv.js", | ||
"start-meta": "dist/node/bin/start-meta.js" | ||
}, | ||
"dependencies": { | ||
"@aws-sdk/client-secrets-manager": "^3.428.0", | ||
"@xylabs/assert": "^2.12.24", | ||
"@xylabs/delay": "^2.12.24", | ||
"@xylabs/exists": "^2.12.24", | ||
"@xylabs/forget": "^2.12.24", | ||
"@xylabs/lodash": "^2.12.24", | ||
"@xylabs/sdk-api-express-ecs": "^1.4.0", | ||
"@xyo-network/account": "^2.76.0", | ||
"@xyo-network/archivist-model": "^2.76.0", | ||
|
@@ -36,6 +38,7 @@ | |
"lodash": "^4.17.21", | ||
"lru-cache": "^10.0.1", | ||
"mime": "^3.0.0", | ||
"minimatch": "^9.0.3", | ||
"node-cache": "^5.1.2", | ||
"puppeteer": "^21.3.8", | ||
"rollbar": "^2.26.2", | ||
|
@@ -51,18 +54,17 @@ | |
"@types/express": "^4.17.19", | ||
"@types/jest": "^29.5.5", | ||
"@types/jest-image-snapshot": "^6.2.1", | ||
"@types/lodash": "^4.14.199", | ||
"@types/node": "^20.8.5", | ||
"@types/serve-static": "^1.15.3", | ||
"@types/supertest": "^2.0.14", | ||
"@xylabs/eslint-config": "^3.1.9", | ||
"@xylabs/eslint-config-react": "^3.1.9", | ||
"@xylabs/jest-helpers": "^2.12.24", | ||
"@xylabs/ts-scripts-yarn3": "^3.1.9", | ||
"@xylabs/tsconfig": "^3.1.9", | ||
"@xylabs/tsconfig-dom": "^3.1.9", | ||
"@xylabs/tsconfig-dom-jest": "^3.1.9", | ||
"@xylabs/tsconfig-jest": "^3.1.9", | ||
"@xylabs/ts-scripts-yarn3": "^3.1.12", | ||
"@xylabs/tsconfig": "^3.1.12", | ||
"@xylabs/tsconfig-dom": "^3.1.12", | ||
"@xylabs/tsconfig-dom-jest": "^3.1.12", | ||
"@xylabs/tsconfig-jest": "^3.1.12", | ||
"axios": "^1.5.1", | ||
"eslint": "^8.51.0", | ||
"jest": "^29.7.0", | ||
|
@@ -81,7 +83,7 @@ | |
".": { | ||
"node": { | ||
"require": { | ||
"types": "./dist/node/index.d.ts", | ||
"types": "./dist/node/index.d.cts", | ||
"default": "./dist/node/index.js" | ||
}, | ||
"import": { | ||
|
@@ -124,7 +126,9 @@ | |
}, | ||
"scripts": { | ||
"coverage": "yarn jest --coverage", | ||
"start": "node dist/cjs/bin/start-meta.js", | ||
"start": "nodemon", | ||
"start-cjs": "node ./dist/node/bin/start-meta.js", | ||
"start-esm": "node ./dist/node/bin/start-meta.mjs", | ||
"test": "yarn jest" | ||
}, | ||
"sideEffects": false, | ||
|
@@ -134,7 +138,7 @@ | |
"node": ">=18.13.0" | ||
}, | ||
"volta": { | ||
"node": "18.13.0", | ||
"node": "18.17.1", | ||
"yarn": "1.22.19" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
2 changes: 1 addition & 1 deletion
2
src/modules/metaServer/contentHandlers/archivistBlock/lib/setHtmlMetaData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { getType } from 'mime' | ||
import mime from 'mime' | ||
|
||
export const isKnownFileExtension = (filePath: string): boolean => { | ||
// const extension = extname(filePath).toLowerCase() | ||
// return knownFileExtensions[extension] ?? false | ||
return getType(filePath) ? true : false | ||
return mime.getType(filePath) ? true : false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.