@easy-cms/drizzle 1.15.0 → 1.15.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ function getAt(data, path) {
15
15
  return current;
16
16
  }
17
17
  function setAt(data, path, value) {
18
+ if (path.includes("__proto__")) throw new Error(`Invalid field path: ${path.join(".")}`);
18
19
  let current = data;
19
20
  for (const key of path.slice(0, -1)) {
20
21
  if (typeof current[key] !== "object" || current[key] === null) current[key] = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/drizzle",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Shared Drizzle ORM layer for Easy CMS database adapters",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,10 +23,10 @@
23
23
  "drizzle-orm": "0.45.4"
24
24
  },
25
25
  "peerDependencies": {
26
- "@easy-cms/core": "^1.15.0"
26
+ "@easy-cms/core": "^1.15.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@easy-cms/core": "^1.15.0"
29
+ "@easy-cms/core": "^1.15.1"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"