@nocobase/plugin-mock-collections 1.6.20 → 1.6.21

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.
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-mock-collections",["@nocobase/client"],t):"object"==typeof exports?exports["@nocobase/plugin-mock-collections"]=t(require("@nocobase/client")):e["@nocobase/plugin-mock-collections"]=t(e["@nocobase/client"])}(self,function(e){return function(){"use strict";var t={772:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,r),u.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:function(){return b}});var u=r(772);function c(e,t,n,r,o,u,c){try{var i=e[u](c),a=i.value}catch(e){n(e);return}i.done?t(a):Promise.resolve(a).then(r,o)}function i(e,t,n){return(i=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o}).apply(null,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var b=function(e){var t,n,r;function o(){var e,t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e=this,t=o,n=arguments,t=l(t),function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e),t=o,n=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,u,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,r=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){c.label=u[1];break}if(6===u[0]&&c.label<o[1]){c.label=o[1],o=u;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(u);break}o[2]&&c.ops.pop(),c.trys.pop();continue}u=t.call(e,c)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}(this,function(e){return[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var u=e.apply(t,n);function i(e){c(u,r,o,i,a,"next",e)}function a(e){c(u,r,o,i,a,"throw",e)}i(void 0)})})()}}],a(t.prototype,n),o}(p(u.Plugin));return o}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-mock-collections",["@nocobase/client"],t):"object"==typeof exports?exports["@nocobase/plugin-mock-collections"]=t(require("@nocobase/client")):e["@nocobase/plugin-mock-collections"]=t(e["@nocobase/client"])}(self,function(e){return function(){"use strict";var t={772:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,r),u.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return!function(){r.r(o),r.d(o,{default:function(){return l}});var e=r(772);function t(e,t,n,r,o,u,c){try{var i=e[u](c),a=i.value}catch(e){n(e);return}i.done?t(a):Promise.resolve(a).then(r,o)}function n(e,t,r){return(n=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o}).apply(null,arguments)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return n(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var l=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return e=r,t=arguments,e=u(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],u(this).constructor):e.apply(this,t))}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&c(r,e),n=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var n,r,o,u,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){var a=[u,i];if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=t.call(e,c)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(e){return[2]})},function(){var n=this,r=arguments;return new Promise(function(o,u){var c=e.apply(n,r);function i(e){t(c,o,u,i,a,"next",e)}function a(e){t(c,o,u,i,a,"throw",e)}i(void 0)})})()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,n),r}(i(e.Plugin))}(),o}()});
@@ -8,11 +8,11 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.6.20",
12
- "@nocobase/database": "1.6.20",
13
- "@nocobase/plugin-data-source-main": "1.6.20",
14
- "@nocobase/server": "1.6.20",
15
- "@nocobase/utils": "1.6.20",
11
+ "@nocobase/client": "1.6.21",
12
+ "@nocobase/database": "1.6.21",
13
+ "@nocobase/plugin-data-source-main": "1.6.21",
14
+ "@nocobase/server": "1.6.21",
15
+ "@nocobase/utils": "1.6.21",
16
16
  "lodash": "4.17.21",
17
17
  "pg": "8.11.3"
18
18
  };
@@ -1 +1 @@
1
- {"name":"@faker-js/faker","version":"8.1.0","description":"Generate massive amounts of fake contextual data","keywords":["faker","faker.js","fakerjs","faker-js","fake data generator","fake data","fake-data","fake-generator","fake-data-generator","fake content generator","fake contextual data generator","fake contextual data"],"repository":{"type":"git","url":"https://github.com/faker-js/faker.git"},"funding":[{"type":"opencollective","url":"https://opencollective.com/fakerjs"}],"bugs":"https://github.com/faker-js/faker/issues","license":"MIT","main":"dist/cjs/index.js","module":"dist/esm/index.mjs","types":"index.d.ts","typesVersions":{">=4.0":{"*":["dist/types/*"]}},"exports":{".":{"types":"./dist/types/index.d.ts","require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs"},"./locale/*":{"types":"./dist/types/locale/*.d.ts","require":"./dist/cjs/locale/*.js","import":"./dist/esm/locale/*.mjs"},"./package.json":"./package.json"},"files":["CHANGELOG.md","dist"],"scripts":{"clean":"rimraf coverage .eslintcache dist docs/.vitepress/dist locale pnpm-lock.yaml node_modules","build:clean":"rimraf dist","build:code":"tsx ./scripts/bundle.ts","build:types":"tsc --project tsconfig.build.json","build":"run-s build:clean build:code build:types","generate":"run-s generate:locales generate:api-docs","generate:api-docs":"tsx ./scripts/apidoc.ts","generate:locales":"tsx ./scripts/generateLocales.ts","docs:build":"run-s docs:prepare docs:build:run","docs:build:run":"vitepress build docs","docs:build:ci":"run-s build docs:build","docs:prepare":"run-s generate:api-docs","docs:dev":"run-s docs:prepare docs:dev:run","docs:dev:run":"vitepress dev docs","docs:serve":"vitepress serve docs --port 5173","docs:diff":"tsx ./scripts/diff.ts","format":"prettier --cache --write .","lint":"eslint --cache --cache-strategy content --report-unused-disable-directives .","ts-check":"tsc","test":"vitest","test:update-snapshots":"vitest run -u","coverage":"vitest run --coverage","cypress":"cypress","docs:test:e2e:ci":"run-s docs:build:ci docs:test:e2e:run","docs:test:e2e:run":"run-p --race docs:serve \"cypress run\"","docs:test:e2e:open":"run-p --race docs:serve \"cypress open\"","release":"standard-version","prepublishOnly":"pnpm run clean && pnpm install && pnpm run build","preflight":"pnpm install && run-s generate format lint build test:update-snapshots ts-check"},"devDependencies":{"@actions/github":"~5.1.1","@algolia/client-search":"~4.19.1","@types/markdown-it":"~13.0.1","@types/node":"~20.6.2","@types/sanitize-html":"~2.9.0","@types/semver":"~7.5.2","@types/validator":"~13.11.1","@typescript-eslint/eslint-plugin":"~6.7.0","@typescript-eslint/parser":"~6.7.0","@vitest/coverage-v8":"~0.34.4","@vitest/ui":"~0.34.4","@vueuse/core":"~10.4.1","conventional-changelog-cli":"~4.1.0","cypress":"~13.2.0","esbuild":"~0.19.3","eslint":"~8.49.0","eslint-config-prettier":"~9.0.0","eslint-define-config":"~1.23.0","eslint-gitignore":"~0.1.0","eslint-plugin-deprecation":"~2.0.0","eslint-plugin-jsdoc":"~46.8.1","eslint-plugin-prettier":"~5.0.0","eslint-plugin-vitest":"~0.3.1","glob":"~10.3.4","npm-run-all":"~4.1.5","prettier":"3.0.3","prettier-plugin-organize-imports":"~3.2.3","rimraf":"~5.0.1","sanitize-html":"~2.11.0","semver":"~7.5.4","standard-version":"~9.5.0","tsx":"~3.12.10","typedoc":"~0.24.8","typescript":"~4.9.5","validator":"~13.11.0","vite":"~4.4.9","vitepress":"1.0.0-beta.7","vitest":"~0.34.4","vue":"~3.3.4"},"packageManager":"pnpm@8.5.1","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0","npm":">=6.14.13"},"_lastModified":"2025-04-14T15:53:32.642Z"}
1
+ {"name":"@faker-js/faker","version":"8.1.0","description":"Generate massive amounts of fake contextual data","keywords":["faker","faker.js","fakerjs","faker-js","fake data generator","fake data","fake-data","fake-generator","fake-data-generator","fake content generator","fake contextual data generator","fake contextual data"],"repository":{"type":"git","url":"https://github.com/faker-js/faker.git"},"funding":[{"type":"opencollective","url":"https://opencollective.com/fakerjs"}],"bugs":"https://github.com/faker-js/faker/issues","license":"MIT","main":"dist/cjs/index.js","module":"dist/esm/index.mjs","types":"index.d.ts","typesVersions":{">=4.0":{"*":["dist/types/*"]}},"exports":{".":{"types":"./dist/types/index.d.ts","require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs"},"./locale/*":{"types":"./dist/types/locale/*.d.ts","require":"./dist/cjs/locale/*.js","import":"./dist/esm/locale/*.mjs"},"./package.json":"./package.json"},"files":["CHANGELOG.md","dist"],"scripts":{"clean":"rimraf coverage .eslintcache dist docs/.vitepress/dist locale pnpm-lock.yaml node_modules","build:clean":"rimraf dist","build:code":"tsx ./scripts/bundle.ts","build:types":"tsc --project tsconfig.build.json","build":"run-s build:clean build:code build:types","generate":"run-s generate:locales generate:api-docs","generate:api-docs":"tsx ./scripts/apidoc.ts","generate:locales":"tsx ./scripts/generateLocales.ts","docs:build":"run-s docs:prepare docs:build:run","docs:build:run":"vitepress build docs","docs:build:ci":"run-s build docs:build","docs:prepare":"run-s generate:api-docs","docs:dev":"run-s docs:prepare docs:dev:run","docs:dev:run":"vitepress dev docs","docs:serve":"vitepress serve docs --port 5173","docs:diff":"tsx ./scripts/diff.ts","format":"prettier --cache --write .","lint":"eslint --cache --cache-strategy content --report-unused-disable-directives .","ts-check":"tsc","test":"vitest","test:update-snapshots":"vitest run -u","coverage":"vitest run --coverage","cypress":"cypress","docs:test:e2e:ci":"run-s docs:build:ci docs:test:e2e:run","docs:test:e2e:run":"run-p --race docs:serve \"cypress run\"","docs:test:e2e:open":"run-p --race docs:serve \"cypress open\"","release":"standard-version","prepublishOnly":"pnpm run clean && pnpm install && pnpm run build","preflight":"pnpm install && run-s generate format lint build test:update-snapshots ts-check"},"devDependencies":{"@actions/github":"~5.1.1","@algolia/client-search":"~4.19.1","@types/markdown-it":"~13.0.1","@types/node":"~20.6.2","@types/sanitize-html":"~2.9.0","@types/semver":"~7.5.2","@types/validator":"~13.11.1","@typescript-eslint/eslint-plugin":"~6.7.0","@typescript-eslint/parser":"~6.7.0","@vitest/coverage-v8":"~0.34.4","@vitest/ui":"~0.34.4","@vueuse/core":"~10.4.1","conventional-changelog-cli":"~4.1.0","cypress":"~13.2.0","esbuild":"~0.19.3","eslint":"~8.49.0","eslint-config-prettier":"~9.0.0","eslint-define-config":"~1.23.0","eslint-gitignore":"~0.1.0","eslint-plugin-deprecation":"~2.0.0","eslint-plugin-jsdoc":"~46.8.1","eslint-plugin-prettier":"~5.0.0","eslint-plugin-vitest":"~0.3.1","glob":"~10.3.4","npm-run-all":"~4.1.5","prettier":"3.0.3","prettier-plugin-organize-imports":"~3.2.3","rimraf":"~5.0.1","sanitize-html":"~2.11.0","semver":"~7.5.4","standard-version":"~9.5.0","tsx":"~3.12.10","typedoc":"~0.24.8","typescript":"~4.9.5","validator":"~13.11.0","vite":"~4.4.9","vitepress":"1.0.0-beta.7","vitest":"~0.34.4","vue":"~3.3.4"},"packageManager":"pnpm@8.5.1","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0","npm":">=6.14.13"},"_lastModified":"2025-04-17T07:03:52.002Z"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nocobase/plugin-mock-collections",
3
3
  "displayName": "mock-collections",
4
4
  "description": "mock-collections",
5
- "version": "1.6.20",
5
+ "version": "1.6.21",
6
6
  "main": "./dist/server/index.js",
7
7
  "license": "AGPL-3.0",
8
8
  "peerDependencies": {
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "pg": "^8.11.3"
18
18
  },
19
- "gitHead": "fe915073be058f8d256000b16d7c1735dc08c23b"
19
+ "gitHead": "2538df7c081e1bb558acead3f0cd87b6a7f02c78"
20
20
  }