New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@prismicio/client

Package Overview
Dependencies
Maintainers
0
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/client - npm Package Compare versions

Comparing version 7.9.0-alpha.3 to 7.9.0

7

dist/buildQueryURL.js
import { castArray } from "./lib/castArray.js";
import { devMsg } from "./lib/devMsg.js";
import { version } from "./package.json.js";
const PRISMIC_DEV_PARAM = "x-d";
const PRISMIC_CLIENT_VERSION_PARAM = "x-c";
const RENAMED_PARAMS = {

@@ -54,2 +57,6 @@ accessToken: "access_token"

}
url.searchParams.set(PRISMIC_CLIENT_VERSION_PARAM, `js-${version}`);
if (process.env.NODE_ENV === "development") {
url.searchParams.set(PRISMIC_DEV_PARAM, "1");
}
return url.toString();

@@ -56,0 +63,0 @@ };

2

dist/package.json.js

@@ -1,2 +0,2 @@

const version = "7.9.0-alpha.3";
const version = "7.9.0";
export {

@@ -3,0 +3,0 @@ version

@@ -13,3 +13,2 @@ import type { CustomTypeModelFieldType } from "./types";

select?: null | (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType];
allowText?: boolean;
allowTargetBlank?: boolean;

@@ -16,0 +15,0 @@ };

@@ -14,4 +14,3 @@ import type { CustomTypeModelFieldType } from "./types";

select: typeof CustomTypeModelLinkSelectType.Media;
allowText?: boolean;
};
}

@@ -29,3 +29,2 @@ import type { AnyRegularField, FieldState } from "./types";

data?: DataInterface;
text?: string;
}

@@ -22,3 +22,2 @@ import type { AnyRegularField, FieldState } from "./types";

link_type: Type | string;
text?: string;
};

@@ -32,3 +31,2 @@ /**

target?: string;
text?: string;
}

@@ -35,0 +33,0 @@ /**

@@ -21,3 +21,2 @@ import type { FieldState } from "./types";

width?: string | null;
text?: string;
}
{
"name": "@prismicio/client",
"version": "7.9.0-alpha.3",
"version": "7.9.0",
"description": "The official JavaScript + TypeScript client library for Prismic",

@@ -5,0 +5,0 @@ "keywords": [

import { castArray } from "./lib/castArray"
import { devMsg } from "./lib/devMsg"
import { version } from "../package.json"
/**
* The query parameter used to indicate if the client is in development mode to
* the API.
*/
const PRISMIC_DEV_PARAM = "x-d"
/**
* The query parameter used to indicate the version of the client to the API.
*/
const PRISMIC_CLIENT_VERSION_PARAM = "x-c"
/**
* Create a union of the given object's values, and optionally specify which

@@ -377,3 +390,9 @@ * keys to get the values from.

url.searchParams.set(PRISMIC_CLIENT_VERSION_PARAM, `js-${version}`)
if (process.env.NODE_ENV === "development") {
url.searchParams.set(PRISMIC_DEV_PARAM, "1")
}
return url.toString()
}

@@ -16,3 +16,2 @@ import type { CustomTypeModelFieldType } from "./types"

| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]
allowText?: boolean
allowTargetBlank?: boolean

@@ -19,0 +18,0 @@ }

@@ -16,4 +16,3 @@ import type { CustomTypeModelFieldType } from "./types"

select: typeof CustomTypeModelLinkSelectType.Media
allowText?: boolean
}
}

@@ -47,3 +47,2 @@ import type { AnyRegularField, FieldState } from "./types"

data?: DataInterface
text?: string
}

@@ -27,3 +27,2 @@ import type { AnyRegularField, FieldState } from "./types"

link_type: Type | string
text?: string
}

@@ -38,3 +37,2 @@

target?: string
text?: string
}

@@ -41,0 +39,0 @@

@@ -27,3 +27,2 @@ import type { FieldState } from "./types"

width?: string | null
text?: string
}

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc