Comparing version 0.6.5 to 0.6.6-rc.1
@@ -5,2 +5,10 @@ # Changelog | ||
### Changed | ||
- Updating presets `--relief` to [v2.5.0](https://github.com/es-tooling/module-replacements/releases/tag/2.5.0) of **module-replacements** ([#47](https://github.com/imcotton/pkg-fence/pull/47)) | ||
## [0.6.5] - 2024-08-12 | ||
@@ -7,0 +15,0 @@ |
#!/usr/bin/env node | ||
import { main } from './main.js'; | ||
import { main } from "./main.js"; | ||
main(); |
@@ -26,3 +26,3 @@ export const help_text = ` | ||
--relief (via es-tooling/module-replacements v2.4.0) | ||
--relief (via es-tooling/module-replacements v2.5.0) | ||
--relief-native | ||
@@ -29,0 +29,0 @@ --relief-micro |
import { createInterface } from 'node:readline'; | ||
import { argv, stdin, exit } from 'node:process'; | ||
import { collect } from '../collect.js'; | ||
import { help_text } from './help.js'; | ||
import { sniff } from './sniff.js'; | ||
import { parse } from './parse.js'; | ||
import { collect } from "../collect.js"; | ||
import { help_text } from "./help.js"; | ||
import { sniff } from "./sniff.js"; | ||
import { parse } from "./parse.js"; | ||
export async function main({ args = argv.slice(2), input = stdin, lines: optional_lines, print = console.log, quit = exit, } = {}) { | ||
@@ -8,0 +8,0 @@ { // -h, --help |
@@ -1,2 +0,2 @@ | ||
import { cons, uncons } from '../common.js'; | ||
import { cons, uncons } from "../common.js"; | ||
export async function sniff(flags, lines) { | ||
@@ -3,0 +3,0 @@ const { format, ...rest } = flags; |
@@ -1,4 +0,4 @@ | ||
import { make_scanner } from './scanner/index.js'; | ||
import { gen_presets } from './presets/index.js'; | ||
import { id, not, filter, lookup, split_by_comma, make_predicate, } from './common.js'; | ||
import { make_scanner } from "./scanner/index.js"; | ||
import { gen_presets } from "./presets/index.js"; | ||
import { id, not, filter, lookup, split_by_comma, make_predicate, } from "./common.js"; | ||
export function collect({ flags, lines }) { | ||
@@ -5,0 +5,0 @@ const { format, extra = [], ignore = [], invert, ...rest } = flags; |
@@ -1,8 +0,8 @@ | ||
import * as lodash from './lodash.js'; | ||
import * as lodash from "./lodash.js"; | ||
export { lodash }; | ||
import * as nolyfill from './nolyfill.js'; | ||
import * as nolyfill from "./nolyfill.js"; | ||
export { nolyfill }; | ||
import * as relief from './relief.js'; | ||
import * as relief from "./relief.js"; | ||
export { relief }; | ||
import { or } from '../common.js'; | ||
import { or } from "../common.js"; | ||
const on = (t) => (p) => p[t] === true; | ||
@@ -9,0 +9,0 @@ const on_all = on('all'); |
@@ -1,2 +0,2 @@ | ||
import { or, eqeqeq, starts_with } from '../common.js'; | ||
import { or, eqeqeq, starts_with } from "../common.js"; | ||
export const check = or(starts_with('lodash.'), eqeqeq('lodash')); |
@@ -1,2 +0,2 @@ | ||
import { lookup } from '../common.js'; | ||
import { lookup } from "../common.js"; | ||
// https://github.com/SukkaW/nolyfill/blob/1.0.34/packages/tools/cli/src/all-packages.ts | ||
@@ -3,0 +3,0 @@ export const list = [ |
@@ -1,3 +0,3 @@ | ||
import { lookup } from '../common.js'; | ||
// https://github.com/es-tooling/module-replacements/blob/2.4.0/manifests/native.json | ||
import { lookup } from "../common.js"; | ||
// https://github.com/es-tooling/module-replacements/blob/2.5.0/manifests/native.json | ||
export const native_list = [ | ||
@@ -137,3 +137,3 @@ 'array-buffer-byte-length', | ||
export const native_check = lookup(native_list); | ||
// https://github.com/es-tooling/module-replacements/blob/2.4.0/manifests/micro-utilities.json | ||
// https://github.com/es-tooling/module-replacements/blob/2.5.0/manifests/micro-utilities.json | ||
export const micro_list = [ | ||
@@ -163,3 +163,3 @@ 'call-bind', | ||
export const micro_check = lookup(micro_list); | ||
// https://github.com/es-tooling/module-replacements/blob/2.4.0/manifests/preferred.json | ||
// https://github.com/es-tooling/module-replacements/blob/2.5.0/manifests/preferred.json | ||
export const preferred_list = [ | ||
@@ -175,2 +175,3 @@ 'bluebird', | ||
'eslint-plugin-react', | ||
'execa', | ||
'fast-glob', | ||
@@ -511,2 +512,3 @@ 'glob', | ||
'npm-run-all', | ||
'ora', | ||
'q', | ||
@@ -513,0 +515,0 @@ 'qs', |
@@ -1,2 +0,2 @@ | ||
import { filter, not, includes_with, and } from '../common.js'; | ||
import { filter, not, includes_with, and } from "../common.js"; | ||
const prefix = ' npm:/'; | ||
@@ -3,0 +3,0 @@ const prefix_len = prefix.length; |
@@ -1,6 +0,6 @@ | ||
import { transform as npm } from './npm.js'; | ||
import { transform as npm } from "./npm.js"; | ||
export { npm }; | ||
import { transform as deno_info } from './deno-info.js'; | ||
import { transform as deno_info } from "./deno-info.js"; | ||
export { deno_info }; | ||
import { id } from '../common.js'; | ||
import { id } from "../common.js"; | ||
export function make_scanner(format) { | ||
@@ -7,0 +7,0 @@ if (format == null) { |
{ | ||
"name": "pkg-fence", | ||
"version": "0.6.5", | ||
"version": "0.6.6-rc.1", | ||
"description": "A command line tool that glance over package dependencies.", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -54,3 +54,3 @@ pkg-fence | ||
- `--nolyfill`: list of names from https://github.com/SukkaW/nolyfill (**1.0.34**) | ||
- `--relief`: list of names from https://github.com/es-tooling/module-replacements (**2.4.0**) | ||
- `--relief`: list of names from https://github.com/es-tooling/module-replacements (**2.5.0**) | ||
- `--relief-native` | ||
@@ -57,0 +57,0 @@ - `--relief-micro` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63184
907