gscdump 0.18.0 → 0.18.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.
package/dist/index.mjs CHANGED
@@ -257,7 +257,7 @@ const QUOTA_REASONS = new Set([
257
257
  "RESOURCE_EXHAUSTED"
258
258
  ]);
259
259
  function extractReason(cause) {
260
- const data = pickField(cause, [["data"]], (v) => true);
260
+ const data = pickField(cause, [["data"]], (_v) => true);
261
261
  if (data) {
262
262
  const errorInfo = pickField(data, [["error", "details"]], (v) => Array.isArray(v));
263
263
  if (errorInfo) {
@@ -1975,6 +1975,17 @@ function or(...filters) {
1975
1975
  _groupType: "or"
1976
1976
  };
1977
1977
  }
1978
+ const INVERSIONS = {
1979
+ equals: "notEquals",
1980
+ notEquals: "equals",
1981
+ contains: "notContains",
1982
+ notContains: "contains",
1983
+ includingRegex: "excludingRegex",
1984
+ excludingRegex: "includingRegex"
1985
+ };
1986
+ function invertOperator(op) {
1987
+ return INVERSIONS[op];
1988
+ }
1978
1989
  function not(filter) {
1979
1990
  const inverted = [];
1980
1991
  for (const f of filter._filters) {
@@ -1990,17 +2001,6 @@ function not(filter) {
1990
2001
  _filters: inverted
1991
2002
  };
1992
2003
  }
1993
- const INVERSIONS = {
1994
- equals: "notEquals",
1995
- notEquals: "equals",
1996
- contains: "notContains",
1997
- notContains: "contains",
1998
- includingRegex: "excludingRegex",
1999
- excludingRegex: "includingRegex"
2000
- };
2001
- function invertOperator(op) {
2002
- return INVERSIONS[op];
2003
- }
2004
2004
  function gte(column, value) {
2005
2005
  return metricOrDimFilter(column, "metricGte", "gte", String(value));
2006
2006
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gscdump",
3
3
  "type": "module",
4
- "version": "0.18.0",
4
+ "version": "0.18.1",
5
5
  "description": "Google Search Console API wrapper with typed query builder, streaming pagination, and SEO analysis functions",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -108,7 +108,7 @@
108
108
  "defu": "^6.1.7",
109
109
  "ofetch": "^1.5.1",
110
110
  "ufo": "^1.6.4",
111
- "@gscdump/contracts": "0.18.0"
111
+ "@gscdump/contracts": "0.18.1"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@googleapis/indexing": "^6.0.1",