Skip to content

Commit

Permalink
Rename dir
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Dec 15, 2024
1 parent 70771c2 commit 6d92ee1
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@
"@babel/eslint-parser": "^7.25.9",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.10.1",
"c8": "^10.1.2",
"@types/node": "^22.10.2",
"c8": "^10.1.3",
"chai": "^5.1.2",
"commander": "^12.1.0",
"copyfiles": "^2.4.1",
"csvtojson": "^2.0.10",
"esbuild": "^0.24.0",
"eslint": "^9.16.0",
"eslint": "^9.17.0",
"eslint-plugin-import-x": "^4.5.0",
"eslint-plugin-jsdoc": "^50.6.0",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-regexp": "^2.7.0",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^15.13.0",
"http-server": "^14.1.1",
"mocha": "^11.0.1",
"neostandard": "^0.11.9",
"neostandard": "^0.12.0",
"npm-run-all2": "^7.0.1",
"sinon": "^19.0.2",
"typescript": "^5.7.2",
Expand All @@ -55,17 +55,17 @@
"bundle": "npm-run-all -s bundle-*",
"bundle-min": "esbuild --format=esm --platform=browser --outfile=dist/url-sanitizer.min.js --bundle --minify --sourcemap bundle/index.js",
"bundle-min-wo-dompurify": "esbuild --format=esm --platform=browser --outfile=dist/url-sanitizer-wo-dompurify.min.js --bundle --minify --sourcemap bundle_wo_dompurify/index.js",
"char": "node modules/index char -i",
"char": "node scripts/index char -i",
"copy": "npm-run-all -s copy-*",
"copy-src": "copyfiles --up=1 --verbose src/**/* --exclude=src/mjs/dompurify.js --exclude=src/mjs/file-reader.js --exclude=src/mjs/lib-util.js bundle",
"copy-src-wo-dompurify": "copyfiles --up=1 --verbose src/**/* --exclude=src/mjs/dompurify.js --exclude=src/mjs/file-reader.js --exclude=src/mjs/lib-util.js bundle_wo_dompurify",
"copy-repl": "copyfiles --up=1 --verbose repl/dompurify.js repl/file-reader.js repl/lib-util.js bundle/mjs",
"copy-repl-wo-dompurify": "copyfiles --up=1 --verbose repl/dompurify-global.js repl/file-reader.js repl/lib-util.js bundle_wo_dompurify/mjs && node modules/index rename --oldpath=bundle_wo_dompurify/mjs/dompurify-global.js --newpath=bundle_wo_dompurify/mjs/dompurify.js -i",
"include": "node modules/index include --dir=iana -i",
"copy-repl-wo-dompurify": "copyfiles --up=1 --verbose repl/dompurify-global.js repl/file-reader.js repl/lib-util.js bundle_wo_dompurify/mjs && node scripts/index rename --oldpath=bundle_wo_dompurify/mjs/dompurify-global.js --newpath=bundle_wo_dompurify/mjs/dompurify.js -i",
"include": "node scripts/index include --dir=iana -i",
"lint": "eslint --fix .",
"test": "c8 --reporter=text mocha --exit test/*.test.js",
"test-bdd": "http-server ./ -c-1 -o test/bdd/url-sanitizer.test.html",
"tsc": "node modules/index clean --dir=types -i && npx tsc"
"tsc": "node scripts/index clean --dir=types -i && npx tsc"
},
"version": "2.0.6"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/commander.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getGlobalDispatcher, MockAgent, setGlobalDispatcher } from 'undici';
import {
commander, cleanDirectory, createCharTable, includeLibraries, parseCommand,
renameFile, saveUriSchemes, storeTextChars
} from '../modules/commander.js';
} from '../scripts/commander.js';

/* constants */
const BASE_URL_IANA = 'https://www.iana.org';
Expand Down
2 changes: 1 addition & 1 deletion test/common.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sinon from 'sinon';
/* test */
import {
getType, isString, logErr, logMsg, logWarn, sleep, throwErr
} from '../modules/common.js';
} from '../scripts/common.js';

describe('getType', () => {
it('should get Undefined', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/file-reader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { strict as assert } from 'node:assert';
import sinon from 'sinon';
import { describe, it } from 'mocha';
import { sleep } from '../modules/common.js';
import { sleep } from '../scripts/common.js';

/* test */
import {
Expand Down
2 changes: 1 addition & 1 deletion test/file-util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getGlobalDispatcher, MockAgent, setGlobalDispatcher } from 'undici';
/* test */
import {
createFile, fetchText, getStat, isDir, isFile, removeDir, rename
} from '../modules/file-util.js';
} from '../scripts/file-util.js';

/* constants */
const TMPDIR = process.env.TMP || process.env.TMPDIR || process.env.TEMP ||
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* api */
import { strict as assert } from 'node:assert';
import { describe, it } from 'mocha';
import { isString } from '../modules/common.js';
import { isString } from '../scripts/common.js';

/* test */
import urlSanitizer, {
Expand Down
2 changes: 1 addition & 1 deletion test/sanitizer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* api */
import { strict as assert } from 'node:assert';
import { describe, it } from 'mocha';
import { isString } from '../modules/common.js';
import { isString } from '../scripts/common.js';

/* test */
import uriSchemes from '../src/lib/iana/uri-schemes.json' with {
Expand Down

0 comments on commit 6d92ee1

Please sign in to comment.