@lowdefy/plugin-gcp 0.0.0-experimental-20260910082708 → 6.0.0

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.
@@ -12,15 +12,14 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ import { ConfigError } from '@lowdefy/errors';
16
- import { type } from '@lowdefy/helpers';
15
+ */ import { type } from '@lowdefy/helpers';
17
16
  import getBucket from '../getBucket.js';
18
17
  import schema from './schema.js';
19
18
  async function GcsSignedPostPolicy({ request, connection }) {
20
19
  const { bucket } = connection;
21
20
  const { conditions, expires = 3600, fields = {}, key } = request;
22
21
  if (type.isObject(fields) === false) {
23
- throw new ConfigError('GcsSignedPostPolicy request "fields" must be an object.');
22
+ throw new Error(`properties.fields must be an object. Received ${JSON.stringify(fields)}.`);
24
23
  }
25
24
  const options = {
26
25
  expires: Date.now() + expires * 1000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/plugin-gcp",
3
- "version": "0.0.0-experimental-20260910082708",
3
+ "version": "6.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Google Cloud Platform connections.",
6
6
  "homepage": "https://lowdefy.com",
@@ -43,12 +43,11 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@google-cloud/storage": "7.21.0",
46
- "@lowdefy/errors": "0.0.0-experimental-20260910082708",
47
- "@lowdefy/helpers": "0.0.0-experimental-20260910082708"
46
+ "@lowdefy/helpers": "6.0.0"
48
47
  },
49
48
  "devDependencies": {
50
49
  "@jest/globals": "28.1.3",
51
- "@lowdefy/ajv": "0.0.0-experimental-20260910082708",
50
+ "@lowdefy/ajv": "6.0.0",
52
51
  "@swc/cli": "0.8.1",
53
52
  "@swc/core": "1.15.32",
54
53
  "@swc/jest": "0.2.39",