@good-fences/api
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Wed, 18 Oct 2023 02:57:13 GMT", | ||
"date": "Tue, 24 Oct 2023 21:41:14 GMT", | ||
"version": "0.9.0", | ||
"tag": "@good-fences/api_v0.9.0", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"author": "edgar21_9@hotmail.com", | ||
"package": "@good-fences/api", | ||
"commit": "c577a638755504be763929b74ad3f301176df63c", | ||
"comment": "Added struct/class to run unused finder tool with in memory representation" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 18 Oct 2023 02:57:33 GMT", | ||
"version": "0.8.0", | ||
@@ -8,0 +23,0 @@ "tag": "@good-fences/api_v0.8.0", |
# Change Log - @good-fences/api | ||
This log was last generated on Wed, 18 Oct 2023 02:57:13 GMT and should not be manually modified. | ||
This log was last generated on Tue, 24 Oct 2023 21:41:14 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.9.0 | ||
Tue, 24 Oct 2023 21:41:14 GMT | ||
### Minor changes | ||
- Added struct/class to run unused finder tool with in memory representation (edgar21_9@hotmail.com) | ||
## 0.8.0 | ||
Wed, 18 Oct 2023 02:57:13 GMT | ||
Wed, 18 Oct 2023 02:57:33 GMT | ||
@@ -11,0 +19,0 @@ ### Minor changes |
@@ -15,5 +15,10 @@ /* tslint:disable */ | ||
} | ||
export interface ExportedItemReport { | ||
id: string | ||
start: number | ||
end: number | ||
} | ||
export interface UnusedFinderReport { | ||
unusedFiles: Array<string> | ||
unusedFilesItems: Record<string, Array<string>> | ||
unusedFilesItems: Record<string, Array<ExportedItemReport>> | ||
} | ||
@@ -47,2 +52,10 @@ export const enum ExternalFences { | ||
export function findUnusedItems(config: FindUnusedItemsConfig): UnusedFinderReport | ||
export function findUnusedItemsForOpenFiles(config: FindUnusedItemsConfig, files: Array<string>): UnusedFinderReport | ||
export class UnusedFinder { | ||
report: UnusedFinderReport | ||
logs: Array<string> | ||
constructor(config: FindUnusedItemsConfig) | ||
refreshFileList(): void | ||
findUnusedItems(filesToCheck: Array<string>): UnusedFinderReport | ||
} | ||
export class GoodFencesResult { | ||
@@ -49,0 +62,0 @@ resultType: GoodFencesResultType |
@@ -255,4 +255,5 @@ /* tslint:disable */ | ||
const { ExternalFences, goodFences, GoodFencesResultType, GoodFencesResult, findUnusedItems } = nativeBinding | ||
const { UnusedFinder, ExternalFences, goodFences, GoodFencesResultType, GoodFencesResult, findUnusedItems, findUnusedItemsForOpenFiles } = nativeBinding | ||
module.exports.UnusedFinder = UnusedFinder | ||
module.exports.ExternalFences = ExternalFences | ||
@@ -263,1 +264,2 @@ module.exports.goodFences = goodFences | ||
module.exports.findUnusedItems = findUnusedItems | ||
module.exports.findUnusedItemsForOpenFiles = findUnusedItemsForOpenFiles |
{ | ||
"name": "@good-fences/api", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"main": "index.js", | ||
@@ -42,6 +42,6 @@ "types": "index.d.ts", | ||
"optionalDependencies": { | ||
"@good-fences/api-win32-x64-msvc": "0.8.0", | ||
"@good-fences/api-darwin-x64": "0.8.0", | ||
"@good-fences/api-linux-x64-gnu": "0.8.0" | ||
"@good-fences/api-win32-x64-msvc": "0.9.0", | ||
"@good-fences/api-darwin-x64": "0.9.0", | ||
"@good-fences/api-linux-x64-gnu": "0.9.0" | ||
} | ||
} |
192
unused.js
#! /usr/bin/env node | ||
let unused = require('./index').findUnusedItems; | ||
let unused = require("./index").findUnusedItems; | ||
const entry = [ | ||
'**/owa-calendar-deeplink-opx-bootstrap/**', | ||
'**/owa-publishedcalendar-bootstrap/**', | ||
'**/owa-mail-bootstrap/**', | ||
'**/owa-deeplink-bootstrap/**', | ||
'**/owa-mail-deeplink-opx-bootstrap/**', | ||
'**/meet-bootstrap/**', | ||
'**/owa-message-recall/**', | ||
'**/native-host-bootstrap/**', | ||
'**/native-host-deep-bootstrap/**', | ||
'**/owa-tokenprovider/**', | ||
'**/owa-bookings-bootstrap/**', | ||
'**/owa-bookingsv2-bootstrap/**', | ||
'**/owa-bookings-mobile-bootstrap/**', | ||
'**/owa-bookings-c2-bootstrap/**', | ||
'**/owa-serviceworker-v2/**', | ||
'**/owa-webpush-serviceworker/**', | ||
'**/owa-findtime-bootstrap/**', | ||
'**/owa-jit-experience/**', | ||
'**/eventify-bootstrap/**', | ||
'**/owa-opx-app-bootstrap/**', | ||
'**/owa-safelink-waitingpage/**', | ||
'**/owa-calendar-widget/**', | ||
'**/owa-todo-widget/**', | ||
'**/bookwithme-bootstrap/**', | ||
'**/owa-ads-frame/**', | ||
'**/owa-adbar-frame/**', | ||
'**/owa-fluent-icons-svg/App/**', | ||
'**/oobe-bootstrap/**', | ||
'**/addison-bootstrap/**', | ||
'**/places-bootstrap/**', | ||
'**/owa-immersive-bizchat-bootstrap/**', | ||
'**/owa-immersive-bizchat-bootstrap/**', | ||
"**/owa-calendar-deeplink-opx-bootstrap/**", | ||
"**/owa-publishedcalendar-bootstrap/**", | ||
"**/owa-mail-bootstrap/**", | ||
"**/owa-deeplink-bootstrap/**", | ||
"**/owa-mail-deeplink-opx-bootstrap/**", | ||
"**/meet-bootstrap/**", | ||
"**/owa-message-recall/**", | ||
"**/native-host-bootstrap/**", | ||
"**/native-host-deep-bootstrap/**", | ||
"**/owa-tokenprovider/**", | ||
"**/owa-bookings-bootstrap/**", | ||
"**/owa-bookingsv2-bootstrap/**", | ||
"**/owa-bookings-mobile-bootstrap/**", | ||
"**/owa-bookings-c2-bootstrap/**", | ||
"**/owa-serviceworker-v2/**", | ||
"**/owa-webpush-serviceworker/**", | ||
"**/owa-findtime-bootstrap/**", | ||
"**/owa-jit-experience/**", | ||
"**/eventify-bootstrap/**", | ||
"**/owa-opx-app-bootstrap/**", | ||
"**/owa-safelink-waitingpage/**", | ||
"**/owa-calendar-widget/**", | ||
"**/owa-todo-widget/**", | ||
"**/bookwithme-bootstrap/**", | ||
"**/owa-ads-frame/**", | ||
"**/owa-adbar-frame/**", | ||
"**/owa-fluent-icons-svg/App/**", | ||
"**/oobe-bootstrap/**", | ||
"**/addison-bootstrap/**", | ||
"**/places-bootstrap/**", | ||
"**/owa-immersive-bizchat-bootstrap/**", | ||
"**/owa-immersive-bizchat-bootstrap/**", | ||
]; | ||
const entries = [ | ||
"owa-addins-osfruntime-resources", | ||
"owa-analytics", | ||
"owa-analytics-worker", | ||
"owa-data-worker", | ||
"owa-data-worker-bootstrap", | ||
"owa-fluent-icons-svg", | ||
"owa-fluent-mobile-brand-icons-svg", | ||
'addison-bootstrap', | ||
'bookwithme-bootstrap', | ||
'create-clone-opx', | ||
'eventify-bootstrap', | ||
'meet-bootstrap', | ||
'native-host-bootstrap', | ||
'native-host-deep-bootstrap', | ||
'oobe-bootstrap', | ||
'owa-adbar-frame', | ||
'owa-ads-frame', | ||
'owa-bookings-bootstrap', | ||
'owa-bookings-c2-bootstrap', | ||
'owa-bookings-mobile-bootstrap', | ||
'owa-bookingsv2-bootstrap', | ||
'owa-calendar-deeplink-opx-bootstrap', | ||
'owa-calendar-widget', | ||
'owa-data-worker-bootstrap', | ||
'owa-deeplink-bootstrap', | ||
'owa-findtime-bootstrap', | ||
'owa-immersive-bizchat-bootstrap', | ||
'owa-jit-experience', | ||
'owa-mail-bootstrap', | ||
'owa-mail-deeplink-opx-bootstrap', | ||
'owa-message-recall', | ||
'owa-new-user-setup', | ||
'owa-opx-app-bootstrap', | ||
'owa-publishedcalendar-bootstrap', | ||
'owa-safelink-waitingpage', | ||
'owa-semantic-overview', | ||
'owa-serviceworker-v2', | ||
'owa-todo-widget', | ||
'owa-tokenprovider', | ||
'owa-webpush-serviceworker', | ||
'places-bootstrap', | ||
'pwa-localization', | ||
'sample-query-common', | ||
'sample-query-field-policy', | ||
"owa-addins-osfruntime-resources", | ||
"owa-analytics", | ||
"owa-analytics-worker", | ||
"owa-data-worker", | ||
"owa-data-worker-bootstrap", | ||
"owa-fluent-icons-svg", | ||
"owa-fluent-mobile-brand-icons-svg", | ||
"addison-bootstrap", | ||
"bookwithme-bootstrap", | ||
"create-clone-opx", | ||
"eventify-bootstrap", | ||
"meet-bootstrap", | ||
"native-host-bootstrap", | ||
"native-host-deep-bootstrap", | ||
"oobe-bootstrap", | ||
"owa-adbar-frame", | ||
"owa-ads-frame", | ||
"owa-bookings-bootstrap", | ||
"owa-bookings-c2-bootstrap", | ||
"owa-bookings-mobile-bootstrap", | ||
"owa-bookingsv2-bootstrap", | ||
"owa-calendar-deeplink-opx-bootstrap", | ||
"owa-calendar-widget", | ||
"owa-data-worker-bootstrap", | ||
"owa-deeplink-bootstrap", | ||
"owa-findtime-bootstrap", | ||
"owa-immersive-bizchat-bootstrap", | ||
"owa-jit-experience", | ||
"owa-mail-bootstrap", | ||
"owa-mail-deeplink-opx-bootstrap", | ||
"owa-message-recall", | ||
"owa-new-user-setup", | ||
"owa-opx-app-bootstrap", | ||
"owa-publishedcalendar-bootstrap", | ||
"owa-safelink-waitingpage", | ||
"owa-semantic-overview", | ||
"owa-serviceworker-v2", | ||
"owa-todo-widget", | ||
"owa-tokenprovider", | ||
"owa-webpush-serviceworker", | ||
"places-bootstrap", | ||
"pwa-localization", | ||
"sample-query-common", | ||
"sample-query-field-policy", | ||
]; | ||
@@ -88,21 +88,23 @@ | ||
let report = unused({ | ||
entryPackages: entries, | ||
filesIgnoredExports: [], | ||
filesIgnoredImports: [], | ||
pathsToRead: ['shared', 'packages'], | ||
skippedDirs: [ | ||
// ...workers.files, | ||
// ...workers.excludedFiles, | ||
"**/osfruntime_strings.js", | ||
"**/test/**", | ||
"**/scripts/**", | ||
"**/*.Test.ts", | ||
"**/*.Tests.ts", | ||
"**/*.d.ts", | ||
], | ||
skippedItems: [], | ||
tsConfigPath: './tsconfig.paths.json' | ||
entryPackages: entries, | ||
filesIgnoredExports: [], | ||
filesIgnoredImports: [], | ||
pathsToRead: ["shared", "packages"], | ||
skippedDirs: [ | ||
// ...workers.files, | ||
// ...workers.excludedFiles, | ||
"**/osfruntime_strings.js", | ||
"**/test/**", | ||
"**/scripts/**", | ||
"**/*.Test.ts", | ||
"**/*.Tests.ts", | ||
"**/*.d.ts", | ||
"**/*.d.scss.ts", | ||
"**/*.d.json.ts", | ||
"**/*.d.css.ts", | ||
], | ||
skippedItems: [], | ||
tsConfigPath: "./tsconfig.paths.json", | ||
}); | ||
report.forEach(r => console.log(r)); | ||
console.log(report); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
301259
71
818