decocms 2.283.1 → 2.283.2
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/client/assets/{AlertCircle-B6lKc5r3.js → AlertCircle-e0Bk25xB.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DKpjDF0O.js → ArrowNarrowLeft-Vpu_QPjf.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cu9gxMoh.js → CheckCircle-AL6QamjV.js} +1 -1
- package/dist/client/assets/{ChevronDown-CGYRNnVK.js → ChevronDown-C3z87Bv3.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cs_mq2Gb.js → ChevronRight-xhxG23cR.js} +1 -1
- package/dist/client/assets/{ChevronUp-CNHg8Tvy.js → ChevronUp-DoY1Z-Lb.js} +1 -1
- package/dist/client/assets/{Container-CTt4BzRP.js → Container-Cn3sXYuI.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B8RP9b4T.js → LinkExternal01-DD77-4YD.js} +1 -1
- package/dist/client/assets/{Lock01-DGN1sRwj.js → Lock01-cgwLiQmV.js} +1 -1
- package/dist/client/assets/{Palette-BLl9a_yE.js → Palette-JLCl7IRa.js} +1 -1
- package/dist/client/assets/{Play-YaIPTi2N.js → Play-DAIUDhkH.js} +1 -1
- package/dist/client/assets/{Plus-CI2hG7eT.js → Plus-CKKWVUUx.js} +1 -1
- package/dist/client/assets/{SearchMd-CJUx5L0X.js → SearchMd-nF5GFZRa.js} +1 -1
- package/dist/client/assets/{Settings02-CzftfR-P.js → Settings02-CPSLXEwZ.js} +1 -1
- package/dist/client/assets/{Star01-CvBfAtRc.js → Star01-BeY2Ng0L.js} +1 -1
- package/dist/client/assets/{Sun-DDl1TbCr.js → Sun-DiHb_uYp.js} +1 -1
- package/dist/client/assets/{Tool01-C4G0_dmI.js → Tool01-C9b4AUFd.js} +1 -1
- package/dist/client/assets/{Trash01-DoGU3WEE.js → Trash01-CoyWql0L.js} +1 -1
- package/dist/client/assets/{User01-Cs--OmtK.js → User01-CTlp_eiF.js} +1 -1
- package/dist/client/assets/{Users03-CEDkUueK.js → Users03-DxA-7JG9.js} +1 -1
- package/dist/client/assets/{X-DU4RFoiA.js → X-ClCV9Dsd.js} +1 -1
- package/dist/client/assets/{XCircle-DIbQNdIy.js → XCircle-BJvE2wPd.js} +1 -1
- package/dist/client/assets/{Zap-D6T_WrPQ.js → Zap-T4-Ky8b7.js} +1 -1
- package/dist/client/assets/{ZapSquare-Btv7LDve.js → ZapSquare-BUTu5PL2.js} +1 -1
- package/dist/client/assets/{accordion-BSHhIZXM.js → accordion-DntQH-5m.js} +1 -1
- package/dist/client/assets/{agent-icon-Dmd713yi.js → agent-icon-zBilAupC.js} +1 -1
- package/dist/client/assets/{agents-list-CJAIn9Nw.js → agents-list-D3oU52M8.js} +1 -1
- package/dist/client/assets/ai-providers-CWHsA8pA.js +1 -0
- package/dist/client/assets/{alert-dialog-BHsh1K_4.js → alert-dialog-CuCOBQNh.js} +1 -1
- package/dist/client/assets/{auth-catchall-BrZqr7p6.js → auth-catchall-Zk4cxhKw.js} +1 -1
- package/dist/client/assets/{automation-list-row-BYsd5_5F.js → automation-list-row-dLMCo99J.js} +1 -1
- package/dist/client/assets/{automations-CwTGObR_.js → automations-C7kafNdu.js} +1 -1
- package/dist/client/assets/{avatar-CiIOC0jm.js → avatar-pskVUcgF.js} +1 -1
- package/dist/client/assets/{badge-4dptbCEq.js → badge-CJ5oUUct.js} +1 -1
- package/dist/client/assets/{brand-context-CDJdQAKY.js → brand-context-DrfN3Sjl.js} +1 -1
- package/dist/client/assets/{card-EK1eVPf2.js → card-CX10qD3B.js} +1 -1
- package/dist/client/assets/{chat-context-BNH6TZ71.js → chat-context-OsgWNZKk.js} +1 -1
- package/dist/client/assets/{checkbox-CnUU9-I8.js → checkbox-D6JbuT--.js} +1 -1
- package/dist/client/assets/{collection-detail-OPcrdjzj.js → collection-detail-BP_lrUBM.js} +1 -1
- package/dist/client/assets/{collection-display-button-CVMEpIRp.js → collection-display-button-CtUqwp7q.js} +1 -1
- package/dist/client/assets/{collection-search-DzQxK0TT.js → collection-search-7HQoERMh.js} +1 -1
- package/dist/client/assets/{collection-search-CAiOUXIV.js → collection-search-CrJAlbRF.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bod3BRUJ.js → collection-table-wrapper-B0HOBkZS.js} +1 -1
- package/dist/client/assets/{collection-tabs-zQGRYBUF.js → collection-tabs-CGegWiIq.js} +1 -1
- package/dist/client/assets/{collections-58NR9gW4.js → collections-BZ9KSM1a.js} +1 -1
- package/dist/client/assets/{command-Cogobv1L.js → command-n35vdDt2.js} +1 -1
- package/dist/client/assets/{connection-card-DUG1h-_6.js → connection-card-i6SOdcNm.js} +1 -1
- package/dist/client/assets/{connection-detail-COc1z0eq.js → connection-detail-g7VBk5Ri.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C3tUUR3v.js → connection-form-helpers-CqBned5r.js} +1 -1
- package/dist/client/assets/{connections-BInA1c12.js → connections-BJun06uv.js} +1 -1
- package/dist/client/assets/{constants-BRrjE7JA.js → constants-DDhnNFtU.js} +1 -1
- package/dist/client/assets/{constants-B9qhU0c2.js → constants-DSi4Q8Ls.js} +1 -1
- package/dist/client/assets/{dialog-DTc6xcOj.js → dialog-B68m35Ko.js} +1 -1
- package/dist/client/assets/{drawer-D7fRUj36.js → drawer-Dtlg5GWG.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DjMLFgss.js → dropdown-menu-DGLoo5dq.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-D5Vx8IAg.js → dynamic-plugin-layout-okut06G4.js} +1 -1
- package/dist/client/assets/{empty-state-CyDjcoCn.js → empty-state-0c3GVBj-.js} +1 -1
- package/dist/client/assets/{empty-state-6q5IDcBd.js → empty-state-D_P5AMA6.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BkBgr0-3.js → extract-connection-data-D0LL8rbt.js} +1 -1
- package/dist/client/assets/{features-BvFC5Pr0.js → features-Cuq7a_9m.js} +1 -1
- package/dist/client/assets/{form-KFRk7eRQ.js → form-Bp4g5y49.js} +1 -1
- package/dist/client/assets/{general-BjGaj1GT.js → general-Dqj1nDvO.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BSkFdyNg.js → github-repo-picker-U-wqCDDT.js} +1 -1
- package/dist/client/assets/{index-D_cV0HX5.js → index-3eJ_fByu.js} +2 -2
- package/dist/client/assets/{index-Baef8J5R.js → index-BLNoCDkN.js} +1 -1
- package/dist/client/assets/{index-BdDTS4hF.js → index-Bj5OpByA.js} +1 -1
- package/dist/client/assets/{index-3FTFAFVn.js → index-BkcXr7Re.js} +1 -1
- package/dist/client/assets/{index-C4DjgJGL.js → index-C4a-NnI4.js} +1 -1
- package/dist/client/assets/{index-CqJy3Jvl.js → index-COr82G6K.js} +1 -1
- package/dist/client/assets/{index-C08HiGeB.js → index-CZ7eo_cz.js} +1 -1
- package/dist/client/assets/{index-4MgAykWa.js → index-CcgMpyLh.js} +4 -4
- package/dist/client/assets/{index-CAASFRGs.js → index-RLRTQOI9.js} +1 -1
- package/dist/client/assets/{index-FOE7YpHv.js → index-TmZvFTN7.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-IJcComZ8.js → infiniteQueryObserver-DquPoAN8.js} +1 -1
- package/dist/client/assets/{input-Cv-Gy5WN.js → input-DYzJ9XQo.js} +1 -1
- package/dist/client/assets/{integration-icon-3xGkh2yb.js → integration-icon-B-89bYAr.js} +1 -1
- package/dist/client/assets/{label-CNlIda5F.js → label-eO1MBaqu.js} +1 -1
- package/dist/client/assets/{layout-DIXmeN4N.js → layout-BHYqEKGE.js} +1 -1
- package/dist/client/assets/{login-BS3FoMPH.js → login-C4Zfdq3e.js} +1 -1
- package/dist/client/assets/{members-CKfYtWTZ.js → members-C0QC-4n1.js} +1 -1
- package/dist/client/assets/{monaco-editor-AFl_PrCF.js → monaco-editor-DdnFl3MX.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D_JrgB_o.js → monitoring-stats-row-eUzqPbqJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-BVoerf7r.js → oauth-callback-DFuYRCL4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CwTSAG2N.js → oauth-callback-ai-provider-arLCd3ZD.js} +1 -1
- package/dist/client/assets/{onboarding-LSX1P2kl.js → onboarding-DWPZnoWO.js} +1 -1
- package/dist/client/assets/{org-layout-LjdMsRi5.js → org-layout-0e4Dw0lu.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BjYMF2Hw.js → org-plugin-layout-fRqJ1wx9.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CNV6Fdky.js → plugin-empty-state-B-ux7Gia.js} +1 -1
- package/dist/client/assets/{plugin-header-Qlrhguve.js → plugin-header-BdzI5qgw.js} +1 -1
- package/dist/client/assets/{plugin-layout-UrD7dGGv.js → plugin-layout-Bp6mgD3f.js} +1 -1
- package/dist/client/assets/{popover-BYKaDh8r.js → popover-BjMbP-rE.js} +1 -1
- package/dist/client/assets/{profile-BfMcwqnt.js → profile-C1dEc6tN.js} +1 -1
- package/dist/client/assets/{project-app-view-CFEp8V0n.js → project-app-view-DZ-VoNGn.js} +1 -1
- package/dist/client/assets/registry-BzzKY_Fo.js +2 -0
- package/dist/client/assets/{registry-layout-C8vYG8EY.js → registry-layout-DqNFKEHB.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D8VR7Qn-.js → required-auth-layout-BPUQrhKu.js} +1 -1
- package/dist/client/assets/{reset-password-_PZQBRj3.js → reset-password-t6V3OFSr.js} +1 -1
- package/dist/client/assets/{scroll-area-BR90DEv6.js → scroll-area-DTmCA_Nn.js} +1 -1
- package/dist/client/assets/{search-input-C1FJdqjU.js → search-input-B000rFqQ.js} +1 -1
- package/dist/client/assets/{select-_midNVXe.js → select-St50_NZJ.js} +1 -1
- package/dist/client/assets/{select-model-GoqBCq85.js → select-model-D_v_U57U.js} +1 -1
- package/dist/client/assets/{settings-layout-BCmCJj0X.js → settings-layout-BuoeX6p_.js} +1 -1
- package/dist/client/assets/{shell-layout-FgHTT5It.js → shell-layout-BQ30KzMJ.js} +1 -1
- package/dist/client/assets/{skeleton-Chpxgw5z.js → skeleton-C54kUHMT.js} +1 -1
- package/dist/client/assets/{sso-CDhG5sm9.js → sso-Dg6hDrWM.js} +1 -1
- package/dist/client/assets/{store-B5BBgWDK.js → store-4mYUEJRd.js} +1 -1
- package/dist/client/assets/store-registry-cnzZ8QNN.js +2 -0
- package/dist/client/assets/{switch-Bb611OnM.js → switch-BkONTD_h.js} +1 -1
- package/dist/client/assets/{table-DZCl3DV_.js → table-qzyyzSVP.js} +1 -1
- package/dist/client/assets/{tabs-CPuI5WWZ.js → tabs-Bt7PknpV.js} +1 -1
- package/dist/client/assets/{task-status-DaR1MpWK.js → task-status-mT8xDIRg.js} +1 -1
- package/dist/client/assets/{textarea-GNMR8OqL.js → textarea-BxEUvI4Y.js} +1 -1
- package/dist/client/assets/{toggle-group-BR1IpJFy.js → toggle-group-Di3ShAJr.js} +1 -1
- package/dist/client/assets/{tools-list-C2ObxyAj.js → tools-list-CYYpP7cq.js} +1 -1
- package/dist/client/assets/{types-DTGLm43F.js → types-GM5qmZ0X.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DZ6DqAM3.js → use-ai-providers-4afhQE8h.js} +1 -1
- package/dist/client/assets/{use-collections-VlX8lbt0.js → use-collections-CUfCY9kw.js} +1 -1
- package/dist/client/assets/{use-connection-DnhQK4fq.js → use-connection-BMRXzgrq.js} +1 -1
- package/dist/client/assets/{use-copy-Dwf-_7tD.js → use-copy-Bom0xOim.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Q8Pi_HJm.js → use-create-virtual-mcp-iwfCwqFc.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CvkLosTt.js → use-decopilot-events-P5nsmqcb.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DnO01-yU.js → use-delete-connection-DY_L-Wdd.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BbJ5h1l2.js → use-infinite-scroll-D_5lwaLu.js} +1 -1
- package/dist/client/assets/{use-list-state-RSIRKfu-.js → use-list-state-h5U3r6Hz.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-dsvqyXUs.js → use-mcp-tools-CYeL56pw.js} +1 -1
- package/dist/client/assets/{use-members-yA1tHxKc.js → use-members-Bdc0PU-O.js} +1 -1
- package/dist/client/assets/{use-mobile-BukhR5xc.js → use-mobile-TpLA3bJu.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-cye4_ovr.js → use-navigate-to-agent-FZAZYQZP.js} +1 -1
- package/dist/client/assets/{use-org-sso-BX-CgWuz.js → use-org-sso-BDOwD-ja.js} +1 -1
- package/dist/client/assets/{use-organization-settings-AIx1cKKY.js → use-organization-settings-DJG6W7_I.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Ck-c3bU5.js → use-registry-connections-DUB-YIZm.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DXJvfF2c.js → use-status-sounds-COAZTgOh.js} +1 -1
- package/dist/client/assets/{use-tasks-B9RSBuk3.js → use-tasks-Cz3y9Qka.js} +1 -1
- package/dist/client/assets/{use-view-mode-0huvW_sB.js → use-view-mode-EvCkIMwX.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CCFi2lST.js → use-virtual-mcp-Yf3Hlsyo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D9wKxri3.js +1 -0
- package/dist/client/assets/{user-R3PETSQv.js → user-CMTKW_Tb.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-T-xER1ZI.js → view-mode-toggle-BHwKMCFg.js} +1 -1
- package/dist/client/assets/{workflow-BblBxdPP.js → workflow-DrXxXB7y.js} +1 -1
- package/dist/client/assets/workflow-detail-DX-ENjhH.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +367 -367
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/{ansi-styles → mimic-fn}/license +1 -1
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/{xtend/LICENSE → postgres-array/license} +2 -1
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/server.js +306 -306
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-D9dwDsov.js +0 -1
- package/dist/client/assets/registry-CDKXBXcC.js +0 -2
- package/dist/client/assets/store-registry-CbUNnR6f.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Bs0N88A0.js +0 -1
- package/dist/client/assets/workflow-detail-CzVmb0o7.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const mimicFn: {
|
|
2
|
+
/**
|
|
3
|
+
Make a function mimic another one. It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
|
4
|
+
|
|
5
|
+
@param to - Mimicking function.
|
|
6
|
+
@param from - Function to mimic.
|
|
7
|
+
@returns The modified `to` function.
|
|
8
|
+
|
|
9
|
+
@example
|
|
10
|
+
```
|
|
11
|
+
import mimicFn = require('mimic-fn');
|
|
12
|
+
|
|
13
|
+
function foo() {}
|
|
14
|
+
foo.unicorn = '🦄';
|
|
15
|
+
|
|
16
|
+
function wrapper() {
|
|
17
|
+
return foo();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
console.log(wrapper.name);
|
|
21
|
+
//=> 'wrapper'
|
|
22
|
+
|
|
23
|
+
mimicFn(wrapper, foo);
|
|
24
|
+
|
|
25
|
+
console.log(wrapper.name);
|
|
26
|
+
//=> 'foo'
|
|
27
|
+
|
|
28
|
+
console.log(wrapper.unicorn);
|
|
29
|
+
//=> '🦄'
|
|
30
|
+
```
|
|
31
|
+
*/
|
|
32
|
+
<
|
|
33
|
+
ArgumentsType extends unknown[],
|
|
34
|
+
ReturnType,
|
|
35
|
+
FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
|
36
|
+
>(
|
|
37
|
+
to: (...arguments: ArgumentsType) => ReturnType,
|
|
38
|
+
from: FunctionType
|
|
39
|
+
): FunctionType;
|
|
40
|
+
|
|
41
|
+
// TODO: Remove this for the next major release, refactor the whole definition to:
|
|
42
|
+
// declare function mimicFn<
|
|
43
|
+
// ArgumentsType extends unknown[],
|
|
44
|
+
// ReturnType,
|
|
45
|
+
// FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
|
46
|
+
// >(
|
|
47
|
+
// to: (...arguments: ArgumentsType) => ReturnType,
|
|
48
|
+
// from: FunctionType
|
|
49
|
+
// ): FunctionType;
|
|
50
|
+
// export = mimicFn;
|
|
51
|
+
default: typeof mimicFn;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export = mimicFn;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const mimicFn = (to, from) => {
|
|
4
|
+
for (const prop of Reflect.ownKeys(from)) {
|
|
5
|
+
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
return to;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
module.exports = mimicFn;
|
|
12
|
+
// TODO: Remove this for the next major release
|
|
13
|
+
module.exports.default = mimicFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mimic-fn",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Make a function mimic another one",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/mimic-fn",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=6"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava && tsd"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"function",
|
|
24
|
+
"mimic",
|
|
25
|
+
"imitate",
|
|
26
|
+
"rename",
|
|
27
|
+
"copy",
|
|
28
|
+
"inherit",
|
|
29
|
+
"properties",
|
|
30
|
+
"name",
|
|
31
|
+
"func",
|
|
32
|
+
"fn",
|
|
33
|
+
"set",
|
|
34
|
+
"infer",
|
|
35
|
+
"change"
|
|
36
|
+
],
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"ava": "^1.4.1",
|
|
39
|
+
"tsd": "^0.7.1",
|
|
40
|
+
"xo": "^0.24.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# mimic-fn [](https://travis-ci.org/sindresorhus/mimic-fn)
|
|
2
|
+
|
|
3
|
+
> Make a function mimic another one
|
|
4
|
+
|
|
5
|
+
Useful when you wrap a function in another function and like to preserve the original name and other properties.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
$ npm install mimic-fn
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const mimicFn = require('mimic-fn');
|
|
19
|
+
|
|
20
|
+
function foo() {}
|
|
21
|
+
foo.unicorn = '🦄';
|
|
22
|
+
|
|
23
|
+
function wrapper() {
|
|
24
|
+
return foo();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
console.log(wrapper.name);
|
|
28
|
+
//=> 'wrapper'
|
|
29
|
+
|
|
30
|
+
mimicFn(wrapper, foo);
|
|
31
|
+
|
|
32
|
+
console.log(wrapper.name);
|
|
33
|
+
//=> 'foo'
|
|
34
|
+
|
|
35
|
+
console.log(wrapper.unicorn);
|
|
36
|
+
//=> '🦄'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## API
|
|
41
|
+
|
|
42
|
+
It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
|
43
|
+
|
|
44
|
+
### mimicFn(to, from)
|
|
45
|
+
|
|
46
|
+
Modifies the `to` function and returns it.
|
|
47
|
+
|
|
48
|
+
#### to
|
|
49
|
+
|
|
50
|
+
Type: `Function`
|
|
51
|
+
|
|
52
|
+
Mimicking function.
|
|
53
|
+
|
|
54
|
+
#### from
|
|
55
|
+
|
|
56
|
+
Type: `Function`
|
|
57
|
+
|
|
58
|
+
Function to mimic.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## Related
|
|
62
|
+
|
|
63
|
+
- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
|
|
64
|
+
- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name, length and other properties
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
exports.parse = function (source, transform) {
|
|
4
|
+
return new ArrayParser(source, transform).parse()
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
class ArrayParser {
|
|
8
|
+
constructor (source, transform) {
|
|
9
|
+
this.source = source
|
|
10
|
+
this.transform = transform || identity
|
|
11
|
+
this.position = 0
|
|
12
|
+
this.entries = []
|
|
13
|
+
this.recorded = []
|
|
14
|
+
this.dimension = 0
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
isEof () {
|
|
18
|
+
return this.position >= this.source.length
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
nextCharacter () {
|
|
22
|
+
var character = this.source[this.position++]
|
|
23
|
+
if (character === '\\') {
|
|
24
|
+
return {
|
|
25
|
+
value: this.source[this.position++],
|
|
26
|
+
escaped: true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
value: character,
|
|
31
|
+
escaped: false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
record (character) {
|
|
36
|
+
this.recorded.push(character)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
newEntry (includeEmpty) {
|
|
40
|
+
var entry
|
|
41
|
+
if (this.recorded.length > 0 || includeEmpty) {
|
|
42
|
+
entry = this.recorded.join('')
|
|
43
|
+
if (entry === 'NULL' && !includeEmpty) {
|
|
44
|
+
entry = null
|
|
45
|
+
}
|
|
46
|
+
if (entry !== null) entry = this.transform(entry)
|
|
47
|
+
this.entries.push(entry)
|
|
48
|
+
this.recorded = []
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
consumeDimensions () {
|
|
53
|
+
if (this.source[0] === '[') {
|
|
54
|
+
while (!this.isEof()) {
|
|
55
|
+
var char = this.nextCharacter()
|
|
56
|
+
if (char.value === '=') break
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
parse (nested) {
|
|
62
|
+
var character, parser, quote
|
|
63
|
+
this.consumeDimensions()
|
|
64
|
+
while (!this.isEof()) {
|
|
65
|
+
character = this.nextCharacter()
|
|
66
|
+
if (character.value === '{' && !quote) {
|
|
67
|
+
this.dimension++
|
|
68
|
+
if (this.dimension > 1) {
|
|
69
|
+
parser = new ArrayParser(this.source.substr(this.position - 1), this.transform)
|
|
70
|
+
this.entries.push(parser.parse(true))
|
|
71
|
+
this.position += parser.position - 2
|
|
72
|
+
}
|
|
73
|
+
} else if (character.value === '}' && !quote) {
|
|
74
|
+
this.dimension--
|
|
75
|
+
if (!this.dimension) {
|
|
76
|
+
this.newEntry()
|
|
77
|
+
if (nested) return this.entries
|
|
78
|
+
}
|
|
79
|
+
} else if (character.value === '"' && !character.escaped) {
|
|
80
|
+
if (quote) this.newEntry(true)
|
|
81
|
+
quote = !quote
|
|
82
|
+
} else if (character.value === ',' && !quote) {
|
|
83
|
+
this.newEntry()
|
|
84
|
+
} else {
|
|
85
|
+
this.record(character.value)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (this.dimension !== 0) {
|
|
89
|
+
throw new Error('array dimension not balanced')
|
|
90
|
+
}
|
|
91
|
+
return this.entries
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function identity (value) {
|
|
96
|
+
return value
|
|
97
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
3
4
|
|
|
4
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postgres-array",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"description": "Parse postgres array columns",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "bendrucker/postgres-array",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Ben Drucker",
|
|
10
|
+
"email": "bvdrucker@gmail.com",
|
|
11
|
+
"url": "bendrucker.me"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=4"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "standard && tape test.js"
|
|
18
|
+
},
|
|
19
|
+
"types": "index.d.ts",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"postgres",
|
|
22
|
+
"array",
|
|
23
|
+
"parser"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"standard": "^12.0.1",
|
|
28
|
+
"tape": "^4.0.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"index.js",
|
|
32
|
+
"index.d.ts",
|
|
33
|
+
"readme.md"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# postgres-array [](https://travis-ci.org/bendrucker/postgres-array)
|
|
2
|
+
|
|
3
|
+
> Parse postgres array columns
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save postgres-array
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var postgresArray = require('postgres-array')
|
|
17
|
+
|
|
18
|
+
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
|
|
19
|
+
//=> [1, 2, 3]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## API
|
|
23
|
+
|
|
24
|
+
#### `parse(input, [transform])` -> `array`
|
|
25
|
+
|
|
26
|
+
##### input
|
|
27
|
+
|
|
28
|
+
*Required*
|
|
29
|
+
Type: `string`
|
|
30
|
+
|
|
31
|
+
A Postgres array string.
|
|
32
|
+
|
|
33
|
+
##### transform
|
|
34
|
+
|
|
35
|
+
Type: `function`
|
|
36
|
+
Default: `identity`
|
|
37
|
+
|
|
38
|
+
A function that transforms non-null values inserted into the array.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
var bufferFrom = Buffer.from || Buffer
|
|
4
|
+
|
|
5
|
+
module.exports = function parseBytea (input) {
|
|
6
|
+
if (/^\\x/.test(input)) {
|
|
7
|
+
// new 'hex' style response (pg >9.0)
|
|
8
|
+
return bufferFrom(input.substr(2), 'hex')
|
|
9
|
+
}
|
|
10
|
+
var output = ''
|
|
11
|
+
var i = 0
|
|
12
|
+
while (i < input.length) {
|
|
13
|
+
if (input[i] !== '\\') {
|
|
14
|
+
output += input[i]
|
|
15
|
+
++i
|
|
16
|
+
} else {
|
|
17
|
+
if (/[0-7]{3}/.test(input.substr(i + 1, 3))) {
|
|
18
|
+
output += String.fromCharCode(parseInt(input.substr(i + 1, 3), 8))
|
|
19
|
+
i += 4
|
|
20
|
+
} else {
|
|
21
|
+
var backslashes = 1
|
|
22
|
+
while (i + backslashes < input.length && input[i + backslashes] === '\\') {
|
|
23
|
+
backslashes++
|
|
24
|
+
}
|
|
25
|
+
for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
|
|
26
|
+
output += '\\'
|
|
27
|
+
}
|
|
28
|
+
i += Math.floor(backslashes / 2) * 2
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return bufferFrom(output, 'binary')
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postgres-bytea",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"description": "Postgres bytea parser",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "bendrucker/postgres-bytea",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Ben Drucker",
|
|
10
|
+
"email": "bvdrucker@gmail.com",
|
|
11
|
+
"url": "bendrucker.me"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=0.10.0"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "standard && tape test.js"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"bytea",
|
|
21
|
+
"postgres",
|
|
22
|
+
"binary",
|
|
23
|
+
"parser"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tape": "^4.0.0",
|
|
28
|
+
"standard": "^4.0.0"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"index.js",
|
|
32
|
+
"readme.md"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# postgres-bytea [](https://travis-ci.org/bendrucker/postgres-bytea)
|
|
2
|
+
|
|
3
|
+
> Postgres bytea parser
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save postgres-bytea
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var bytea = require('postgres-bytea');
|
|
17
|
+
bytea('\\000\\100\\200')
|
|
18
|
+
//=> buffer
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## API
|
|
22
|
+
|
|
23
|
+
#### `bytea(input)` -> `buffer`
|
|
24
|
+
|
|
25
|
+
##### input
|
|
26
|
+
|
|
27
|
+
*Required*
|
|
28
|
+
Type: `string`
|
|
29
|
+
|
|
30
|
+
A Postgres bytea binary string.
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
var DATE_TIME = /(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/
|
|
4
|
+
var DATE = /^(\d{1,})-(\d{2})-(\d{2})( BC)?$/
|
|
5
|
+
var TIME_ZONE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/
|
|
6
|
+
var INFINITY = /^-?infinity$/
|
|
7
|
+
|
|
8
|
+
module.exports = function parseDate (isoDate) {
|
|
9
|
+
if (INFINITY.test(isoDate)) {
|
|
10
|
+
// Capitalize to Infinity before passing to Number
|
|
11
|
+
return Number(isoDate.replace('i', 'I'))
|
|
12
|
+
}
|
|
13
|
+
var matches = DATE_TIME.exec(isoDate)
|
|
14
|
+
|
|
15
|
+
if (!matches) {
|
|
16
|
+
// Force YYYY-MM-DD dates to be parsed as local time
|
|
17
|
+
return getDate(isoDate) || null
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var isBC = !!matches[8]
|
|
21
|
+
var year = parseInt(matches[1], 10)
|
|
22
|
+
if (isBC) {
|
|
23
|
+
year = bcYearToNegativeYear(year)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var month = parseInt(matches[2], 10) - 1
|
|
27
|
+
var day = matches[3]
|
|
28
|
+
var hour = parseInt(matches[4], 10)
|
|
29
|
+
var minute = parseInt(matches[5], 10)
|
|
30
|
+
var second = parseInt(matches[6], 10)
|
|
31
|
+
|
|
32
|
+
var ms = matches[7]
|
|
33
|
+
ms = ms ? 1000 * parseFloat(ms) : 0
|
|
34
|
+
|
|
35
|
+
var date
|
|
36
|
+
var offset = timeZoneOffset(isoDate)
|
|
37
|
+
if (offset != null) {
|
|
38
|
+
date = new Date(Date.UTC(year, month, day, hour, minute, second, ms))
|
|
39
|
+
|
|
40
|
+
// Account for years from 0 to 99 being interpreted as 1900-1999
|
|
41
|
+
// by Date.UTC / the multi-argument form of the Date constructor
|
|
42
|
+
if (is0To99(year)) {
|
|
43
|
+
date.setUTCFullYear(year)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (offset !== 0) {
|
|
47
|
+
date.setTime(date.getTime() - offset)
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
date = new Date(year, month, day, hour, minute, second, ms)
|
|
51
|
+
|
|
52
|
+
if (is0To99(year)) {
|
|
53
|
+
date.setFullYear(year)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return date
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function getDate (isoDate) {
|
|
61
|
+
var matches = DATE.exec(isoDate)
|
|
62
|
+
if (!matches) {
|
|
63
|
+
return
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var year = parseInt(matches[1], 10)
|
|
67
|
+
var isBC = !!matches[4]
|
|
68
|
+
if (isBC) {
|
|
69
|
+
year = bcYearToNegativeYear(year)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var month = parseInt(matches[2], 10) - 1
|
|
73
|
+
var day = matches[3]
|
|
74
|
+
// YYYY-MM-DD will be parsed as local time
|
|
75
|
+
var date = new Date(year, month, day)
|
|
76
|
+
|
|
77
|
+
if (is0To99(year)) {
|
|
78
|
+
date.setFullYear(year)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return date
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// match timezones:
|
|
85
|
+
// Z (UTC)
|
|
86
|
+
// -05
|
|
87
|
+
// +06:30
|
|
88
|
+
function timeZoneOffset (isoDate) {
|
|
89
|
+
if (isoDate.endsWith('+00')) {
|
|
90
|
+
return 0
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
var zone = TIME_ZONE.exec(isoDate.split(' ')[1])
|
|
94
|
+
if (!zone) return
|
|
95
|
+
var type = zone[1]
|
|
96
|
+
|
|
97
|
+
if (type === 'Z') {
|
|
98
|
+
return 0
|
|
99
|
+
}
|
|
100
|
+
var sign = type === '-' ? -1 : 1
|
|
101
|
+
var offset = parseInt(zone[2], 10) * 3600 +
|
|
102
|
+
parseInt(zone[3] || 0, 10) * 60 +
|
|
103
|
+
parseInt(zone[4] || 0, 10)
|
|
104
|
+
|
|
105
|
+
return offset * sign * 1000
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function bcYearToNegativeYear (year) {
|
|
109
|
+
// Account for numerical difference between representations of BC years
|
|
110
|
+
// See: https://github.com/bendrucker/postgres-date/issues/5
|
|
111
|
+
return -(year - 1)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function is0To99 (num) {
|
|
115
|
+
return num >= 0 && num < 100
|
|
116
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postgres-date",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"version": "1.0.7",
|
|
5
|
+
"description": "Postgres date column parser",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "bendrucker/postgres-date",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Ben Drucker",
|
|
10
|
+
"email": "bvdrucker@gmail.com",
|
|
11
|
+
"url": "bendrucker.me"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=0.10.0"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "standard && tape test.js"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"postgres",
|
|
21
|
+
"date",
|
|
22
|
+
"parser"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"standard": "^14.0.0",
|
|
27
|
+
"tape": "^5.0.0"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"index.js",
|
|
31
|
+
"readme.md"
|
|
32
|
+
]
|
|
33
|
+
}
|