@google-psat/analysis-utils 0.14.1 → 1.0.0-1

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.
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * External dependencies.
3
3
  */
4
- import { type CookieDatabase, type LibraryMatchers, type Selectors } from '@google-psat/common';
5
- export declare const analyzeCookiesUrlsAndFetchResources: (urls: string[], Libraries: LibraryMatchers[], isHeadless: boolean, delayTime: number, cookieDictionary: CookieDatabase, shouldSkipAcceptBanner: boolean, verbose: boolean, isSitemap: boolean, selectors?: Selectors, spinnies?: Spinnies, indent?: number) => Promise<{
4
+ import { type CookieDatabase, type Selectors } from '@google-psat/common';
5
+ export declare const analyzeCookiesUrlsAndFetchResources: (urls: string[], isHeadless: boolean, delayTime: number, cookieDictionary: CookieDatabase, shouldSkipAcceptBanner: boolean, verbose: boolean, isSitemap: boolean, selectors?: Selectors, spinnies?: Spinnies, indent?: number) => Promise<{
6
6
  url: string;
7
7
  cookieData: import("../browserManagement/types").CookieDataFromNetwork;
8
8
  resources: any;
9
9
  erroredOutUrls: Record<string, import("@google-psat/common").SingleURLError[]>;
10
- domQueryMatches: import("@google-psat/common").LibraryData;
11
10
  }[]>;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * External dependencies.
3
3
  */
4
- import { type CookieData, type CookieDatabase, LibraryData, type LibraryMatchers, type SingleURLError, type Selectors } from '@google-psat/common';
5
- export declare const analyzeCookiesUrlsInBatchesAndFetchResources: (urls: string[], Libraries: LibraryMatchers[], isHeadless: boolean, delayTime: number, cookieDictionary: CookieDatabase, batchSize?: number, spinnies?: Spinnies, shouldSkipAcceptBanner?: boolean, verbose?: boolean, indent?: number, selectors?: Selectors) => Promise<{
4
+ import { type CookieData, type CookieDatabase, type SingleURLError, type Selectors } from '@google-psat/common';
5
+ export declare const analyzeCookiesUrlsInBatchesAndFetchResources: (urls: string[], isHeadless: boolean, delayTime: number, cookieDictionary: CookieDatabase, batchSize?: number, spinnies?: Spinnies, shouldSkipAcceptBanner?: boolean, verbose?: boolean, indent?: number, selectors?: Selectors) => Promise<{
6
6
  url: string;
7
7
  cookieData: {
8
8
  [frameUrl: string]: {
@@ -16,6 +16,5 @@ export declare const analyzeCookiesUrlsInBatchesAndFetchResources: (urls: string
16
16
  content: string;
17
17
  type?: string;
18
18
  }[];
19
- domQueryMatches: LibraryData;
20
19
  erroredOutUrls: Record<string, SingleURLError[]>;
21
20
  }[]>;
package/package.json CHANGED
@@ -1,18 +1,12 @@
1
1
  {
2
2
  "name": "@google-psat/analysis-utils",
3
- "version": "0.14.1",
3
+ "version": "1.0.0-1",
4
4
  "description": "A package for CLI analysis",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist-types/index.d.ts",
7
- "source": "src/index.ts",
8
7
  "author": {
9
8
  "name": "Google"
10
9
  },
11
- "customExports": {
12
- ".": {
13
- "default": "./src/index.ts"
14
- }
15
- },
16
10
  "scripts": {
17
11
  "build": "tsc",
18
12
  "dev": "tsc-watch",
package/tsconfig.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "rootDir": "src",
4
- "target": "es6",
5
- "lib": ["es2021"],
6
- "module": "commonjs",
4
+ "target": "ESNext",
5
+ "lib": ["ESNext"],
6
+ "module": "ESNext",
7
7
  "outDir": "dist",
8
8
  "declarationDir": "dist-types",
9
9
  "composite": true,