Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gram-data/gram-builder

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gram-data/gram-builder - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

18

dist/gram-builder.cjs.development.js

@@ -247,6 +247,6 @@ 'use strict';

var pair = function pair(members, id, labels, record) {
var path = function path(kind, members, id, labels, record) {
return _extends({
type: 'path',
kind: 'pair',
kind: kind,
id: id

@@ -262,2 +262,14 @@ }, labels && {

/**
* Build a pair
*
* @param children
* @param id
* @param labels
* @param record
*/
var pair = function pair(members, id, labels, record) {
return path('pair', members, id, labels, record);
};
/**
* Reduces an array of GramProperties into a map.

@@ -409,2 +421,3 @@ *

edge: edge,
path: path,
pair: pair,

@@ -450,2 +463,3 @@ recordToMap: recordToMap,

exports.pair = pair;
exports.path = path;
exports.pluck = pluck;

@@ -452,0 +466,0 @@ exports.property = property;

2

dist/gram-builder.cjs.production.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gram-data/gram-ast");function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(e){return Array.isArray(e)?e:e instanceof Function?r(e()):void 0===e?[]:[e]}var n=function(e,n,i,o){return t({type:"seq",id:n},i&&{labels:i},o&&{record:o},{children:r(e)})},i=function(e,t){return void 0===e&&(e="pair"),t.length>1?t.slice(0,t.length-1).reduceRight((function(t,r){return o([r,t],{kind:e})}),t[t.length-1]):t[0]},o=function(r,n){void 0===n&&(n={});var i=t({type:"path"},n.id&&{id:n.id},n.labels&&{labels:n.labels},n.record&&{record:n.record});if(void 0===r)return i.id&&i.id!==e.EMPTY_PATH_ID?(i.children=[],i):(i.children=void 0,a);if(0===r.length)return i.id===e.EMPTY_PATH_ID?a:(i.children=[],i);if(1===r.length){var o=r[0];return e.isGramEmptyPath(o)?(i.children=[],i):(i.children=[o],i)}if(2===r.length){if(n.kind&&"pair"!==n.kind&&e.isGramNode(r[0])&&e.isGramNode(r[1]))return i.kind=n.kind,i.children=[r[0],r[1]],i;if(e.isGramEmptyPath(r[0])&&e.isGramEmptyPath(r[1]))return i.kind=n.kind,i.children=[],i;i.children=[r[0],r[1]]}return i.kind=n.kind||"pair",i},a={type:"path",id:e.EMPTY_PATH_ID,labels:void 0,record:void 0,children:[]},u=function(){return a},d=function(e,r,n){return t({type:"path"},e&&{id:e},r&&{labels:r},n&&{record:n},{children:[]})},c=function(e,r,n,i,o){return t({type:"path",id:n},i&&{labels:i},o&&{record:o},{kind:r,children:e})},l=function(e,r,n,i){return t({type:"path",kind:"pair",id:r},n&&{labels:n},i&&{record:i},{children:e})},p=function(e){return e.reduce((function(e,t){return e[t.name]=t.value,e}),{})},s=function(e){return Object.entries(e).reduce((function(e,t){return e.push(g(t[0],t[1])),e}),[])},f=function(e,t){return e.reduce((function(e,r){return r.name===t?r:e}))},g=function(e,t){return{type:"property",name:e,value:t}},h=function(e){return{type:"boolean",value:e?"true":"false"}},m=function(e){return{type:"string",value:e}},y=function(e,t){return{type:"tagged",value:t,tag:e}},x=function(e){return{type:"integer",value:String(e)}},v=function(e){return{type:"decimal",value:String(e)}},T=function(e){return{type:"hexadecimal",value:"number"==typeof e?e.toString(16):e}},b=function(e){return{type:"octal",value:"number"==typeof e?e.toString(8):e}},P=function(e,t){return{type:"measurement",value:String(t),unit:e}},M=function(e){return y("date",e instanceof Date?e.getFullYear().toString():e)},k=function(e){return y("date",e instanceof Date?e.toISOString().slice(0,10):e)},S=function(e){return y("date",e instanceof Date?"--"+e.toISOString().slice(5,10):e)},_=function(e){return y("time",e instanceof Date?e.toTimeString():e)},D=function(e){return y("duration",e instanceof Date?"P"+(e.getUTCFullYear()-1970)+"Y"+e.getUTCMonth()+"M"+e.getUTCDate()+"DT"+e.getUTCHours()+"H"+e.getUTCMinutes()+"M"+e.getUTCMilliseconds()/1e3+"S":e)},O=function(e,t){return void 0===t&&(t=1),e.flat(t).filter((function(e){return null!==e}))},C={__proto__:null,seq:n,listToPath:i,cons:o,empty:u,node:d,edge:c,pair:l,recordToMap:p,mapToRecord:s,pluck:f,property:g,boolean:h,string:m,tagged:y,integer:x,decimal:v,hexadecimal:T,octal:b,measurement:P,year:M,date:k,dayOfMonth:S,time:_,duration:D,flatten:O,default:{seq:n,empty:u,cons:o,pair:l,listToPath:i,node:d,edge:c,property:g,boolean:h,string:m,tagged:y,integer:x,decimal:v,hexadecimal:T,octal:b,measurement:P,date:k,time:_,duration:D,flatten:O,recordToMap:p,mapToRecord:s}};exports.boolean=h,exports.builder=C,exports.cons=o,exports.date=k,exports.dayOfMonth=S,exports.decimal=v,exports.duration=D,exports.edge=c,exports.empty=u,exports.flatten=O,exports.hexadecimal=T,exports.integer=x,exports.listToPath=i,exports.mapToRecord=s,exports.measurement=P,exports.node=d,exports.octal=b,exports.pair=l,exports.pluck=f,exports.property=g,exports.recordToMap=p,exports.seq=n,exports.string=m,exports.tagged=y,exports.time=_,exports.year=M;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gram-data/gram-ast");function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(e){return Array.isArray(e)?e:e instanceof Function?r(e()):void 0===e?[]:[e]}var n=function(e,n,i,o){return t({type:"seq",id:n},i&&{labels:i},o&&{record:o},{children:r(e)})},i=function(e,t){return void 0===e&&(e="pair"),t.length>1?t.slice(0,t.length-1).reduceRight((function(t,r){return o([r,t],{kind:e})}),t[t.length-1]):t[0]},o=function(r,n){void 0===n&&(n={});var i=t({type:"path"},n.id&&{id:n.id},n.labels&&{labels:n.labels},n.record&&{record:n.record});if(void 0===r)return i.id&&i.id!==e.EMPTY_PATH_ID?(i.children=[],i):(i.children=void 0,a);if(0===r.length)return i.id===e.EMPTY_PATH_ID?a:(i.children=[],i);if(1===r.length){var o=r[0];return e.isGramEmptyPath(o)?(i.children=[],i):(i.children=[o],i)}if(2===r.length){if(n.kind&&"pair"!==n.kind&&e.isGramNode(r[0])&&e.isGramNode(r[1]))return i.kind=n.kind,i.children=[r[0],r[1]],i;if(e.isGramEmptyPath(r[0])&&e.isGramEmptyPath(r[1]))return i.kind=n.kind,i.children=[],i;i.children=[r[0],r[1]]}return i.kind=n.kind||"pair",i},a={type:"path",id:e.EMPTY_PATH_ID,labels:void 0,record:void 0,children:[]},u=function(){return a},c=function(e,r,n){return t({type:"path"},e&&{id:e},r&&{labels:r},n&&{record:n},{children:[]})},d=function(e,r,n,i,o){return t({type:"path",id:n},i&&{labels:i},o&&{record:o},{kind:r,children:e})},l=function(e,r,n,i,o){return t({type:"path",kind:e,id:n},i&&{labels:i},o&&{record:o},{children:r})},p=function(e,t,r,n){return l("pair",e,t,r,n)},s=function(e){return e.reduce((function(e,t){return e[t.name]=t.value,e}),{})},f=function(e){return Object.entries(e).reduce((function(e,t){return e.push(h(t[0],t[1])),e}),[])},g=function(e,t){return e.reduce((function(e,r){return r.name===t?r:e}))},h=function(e,t){return{type:"property",name:e,value:t}},m=function(e){return{type:"boolean",value:e?"true":"false"}},y=function(e){return{type:"string",value:e}},x=function(e,t){return{type:"tagged",value:t,tag:e}},v=function(e){return{type:"integer",value:String(e)}},T=function(e){return{type:"decimal",value:String(e)}},b=function(e){return{type:"hexadecimal",value:"number"==typeof e?e.toString(16):e}},P=function(e){return{type:"octal",value:"number"==typeof e?e.toString(8):e}},M=function(e,t){return{type:"measurement",value:String(t),unit:e}},k=function(e){return x("date",e instanceof Date?e.getFullYear().toString():e)},S=function(e){return x("date",e instanceof Date?e.toISOString().slice(0,10):e)},_=function(e){return x("date",e instanceof Date?"--"+e.toISOString().slice(5,10):e)},D=function(e){return x("time",e instanceof Date?e.toTimeString():e)},O=function(e){return x("duration",e instanceof Date?"P"+(e.getUTCFullYear()-1970)+"Y"+e.getUTCMonth()+"M"+e.getUTCDate()+"DT"+e.getUTCHours()+"H"+e.getUTCMinutes()+"M"+e.getUTCMilliseconds()/1e3+"S":e)},C=function(e,t){return void 0===t&&(t=1),e.flat(t).filter((function(e){return null!==e}))},E={__proto__:null,seq:n,listToPath:i,cons:o,empty:u,node:c,edge:d,path:l,pair:p,recordToMap:s,mapToRecord:f,pluck:g,property:h,boolean:m,string:y,tagged:x,integer:v,decimal:T,hexadecimal:b,octal:P,measurement:M,year:k,date:S,dayOfMonth:_,time:D,duration:O,flatten:C,default:{seq:n,empty:u,cons:o,pair:p,listToPath:i,node:c,edge:d,property:h,boolean:m,string:y,tagged:x,integer:v,decimal:T,hexadecimal:b,octal:P,measurement:M,date:S,time:D,duration:O,flatten:C,recordToMap:s,mapToRecord:f}};exports.boolean=m,exports.builder=E,exports.cons=o,exports.date=S,exports.dayOfMonth=_,exports.decimal=T,exports.duration=O,exports.edge=d,exports.empty=u,exports.flatten=C,exports.hexadecimal=b,exports.integer=v,exports.listToPath=i,exports.mapToRecord=f,exports.measurement=M,exports.node=c,exports.octal=P,exports.pair=p,exports.path=l,exports.pluck=g,exports.property=h,exports.recordToMap=s,exports.seq=n,exports.string=y,exports.tagged=x,exports.time=D,exports.year=k;
//# sourceMappingURL=gram-builder.cjs.production.min.js.map

@@ -77,2 +77,11 @@ /**

*/
export declare const path: (kind: RelationshipKind, members: [GramPath, GramPath], id?: string | undefined, labels?: string[] | undefined, record?: GramRecord | undefined) => GramPath;
/**
* Build a pair
*
* @param children
* @param id
* @param labels
* @param record
*/
export declare const pair: (members: [GramPath, GramPath], id?: string | undefined, labels?: string[] | undefined, record?: GramRecord | undefined) => GramPath;

@@ -79,0 +88,0 @@ /**

@@ -243,6 +243,6 @@ import { EMPTY_PATH_ID, isGramEmptyPath, isGramNode } from '@gram-data/gram-ast';

var pair = function pair(members, id, labels, record) {
var path = function path(kind, members, id, labels, record) {
return _extends({
type: 'path',
kind: 'pair',
kind: kind,
id: id

@@ -258,2 +258,14 @@ }, labels && {

/**
* Build a pair
*
* @param children
* @param id
* @param labels
* @param record
*/
var pair = function pair(members, id, labels, record) {
return path('pair', members, id, labels, record);
};
/**
* Reduces an array of GramProperties into a map.

@@ -405,2 +417,3 @@ *

edge: edge,
path: path,
pair: pair,

@@ -428,3 +441,3 @@ recordToMap: recordToMap,

export { _boolean as boolean, gramBuilder$1 as builder, cons, date, dayOfMonth, decimal, duration, edge, empty, flatten, hexadecimal, integer, listToPath, mapToRecord, measurement, node, octal, pair, pluck, property, recordToMap, seq, string, tagged, time, year };
export { _boolean as boolean, gramBuilder$1 as builder, cons, date, dayOfMonth, decimal, duration, edge, empty, flatten, hexadecimal, integer, listToPath, mapToRecord, measurement, node, octal, pair, path, pluck, property, recordToMap, seq, string, tagged, time, year };
//# sourceMappingURL=gram-builder.esm.js.map

@@ -291,6 +291,6 @@ (function (global, factory) {

var pair = function pair(members, id, labels, record) {
var path = function path(kind, members, id, labels, record) {
return _extends({
type: 'path',
kind: 'pair',
kind: kind,
id: id

@@ -306,2 +306,14 @@ }, labels && {

/**
* Build a pair
*
* @param children
* @param id
* @param labels
* @param record
*/
var pair = function pair(members, id, labels, record) {
return path('pair', members, id, labels, record);
};
/**
* Reduces an array of GramProperties into a map.

@@ -453,2 +465,3 @@ *

edge: edge,
path: path,
pair: pair,

@@ -494,2 +507,3 @@ recordToMap: recordToMap,

exports.pair = pair;
exports.path = path;
exports.pluck = pluck;

@@ -496,0 +510,0 @@ exports.property = property;

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).gram=e.gram||{},e.gram.builder={}))}(this,(function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var n=function(e){return!!e.type&&"path"===e.type},r=function(e){return n(e)&&"ø"===e.id},i=function(e){return n(e)&&e.children&&0===e.children.length&&"ø"!==e.id};function o(e){return Array.isArray(e)?e:e instanceof Function?o(e()):void 0===e?[]:[e]}var a=function(e,n,r,i){return t({type:"seq",id:n},r&&{labels:r},i&&{record:i},{children:o(e)})},u=function(e,t){return void 0===e&&(e="pair"),t.length>1?t.slice(0,t.length-1).reduceRight((function(t,n){return d([n,t],{kind:e})}),t[t.length-1]):t[0]},d=function(e,n){void 0===n&&(n={});var o=t({type:"path"},n.id&&{id:n.id},n.labels&&{labels:n.labels},n.record&&{record:n.record});if(void 0===e)return o.id&&"ø"!==o.id?(o.children=[],o):(o.children=void 0,c);if(0===e.length)return"ø"===o.id?c:(o.children=[],o);if(1===e.length){var a=e[0];return r(a)?(o.children=[],o):(o.children=[a],o)}if(2===e.length){if(n.kind&&"pair"!==n.kind&&i(e[0])&&i(e[1]))return o.kind=n.kind,o.children=[e[0],e[1]],o;if(r(e[0])&&r(e[1]))return o.kind=n.kind,o.children=[],o;o.children=[e[0],e[1]]}return o.kind=n.kind||"pair",o},c={type:"path",id:"ø",labels:void 0,record:void 0,children:[]},l=function(){return c},f=function(e,n,r){return t({type:"path"},e&&{id:e},n&&{labels:n},r&&{record:r},{children:[]})},p=function(e,n,r,i,o){return t({type:"path",id:r},i&&{labels:i},o&&{record:o},{kind:n,children:e})},s=function(e,n,r,i){return t({type:"path",kind:"pair",id:n},r&&{labels:r},i&&{record:i},{children:e})},g=function(e){return e.reduce((function(e,t){return e[t.name]=t.value,e}),{})},h=function(e){return Object.entries(e).reduce((function(e,t){return e.push(m(t[0],t[1])),e}),[])},y=function(e,t){return e.reduce((function(e,n){return n.name===t?n:e}))},m=function(e,t){return{type:"property",name:e,value:t}},v=function(e){return{type:"boolean",value:e?"true":"false"}},b=function(e){return{type:"string",value:e}},T=function(e,t){return{type:"tagged",value:t,tag:e}},k=function(e){return{type:"integer",value:String(e)}},S=function(e){return{type:"decimal",value:String(e)}},M=function(e){return{type:"hexadecimal",value:"number"==typeof e?e.toString(16):e}},O=function(e){return{type:"octal",value:"number"==typeof e?e.toString(8):e}},x=function(e,t){return{type:"measurement",value:String(t),unit:e}},D=function(e){return T("date",e instanceof Date?e.getFullYear().toString():e)},C=function(e){return T("date",e instanceof Date?e.toISOString().slice(0,10):e)},P=function(e){return T("date",e instanceof Date?"--"+e.toISOString().slice(5,10):e)},U=function(e){return T("time",e instanceof Date?e.toTimeString():e)},_=function(e){return T("duration",e instanceof Date?"P"+(e.getUTCFullYear()-1970)+"Y"+e.getUTCMonth()+"M"+e.getUTCDate()+"DT"+e.getUTCHours()+"H"+e.getUTCMinutes()+"M"+e.getUTCMilliseconds()/1e3+"S":e)},j=function(e,t){return void 0===t&&(t=1),e.flat(t).filter((function(e){return null!==e}))},q={__proto__:null,seq:a,listToPath:u,cons:d,empty:l,node:f,edge:p,pair:s,recordToMap:g,mapToRecord:h,pluck:y,property:m,boolean:v,string:b,tagged:T,integer:k,decimal:S,hexadecimal:M,octal:O,measurement:x,year:D,date:C,dayOfMonth:P,time:U,duration:_,flatten:j,default:{seq:a,empty:l,cons:d,pair:s,listToPath:u,node:f,edge:p,property:m,boolean:v,string:b,tagged:T,integer:k,decimal:S,hexadecimal:M,octal:O,measurement:x,date:C,time:U,duration:_,flatten:j,recordToMap:g,mapToRecord:h}};e.boolean=v,e.builder=q,e.cons=d,e.date=C,e.dayOfMonth=P,e.decimal=S,e.duration=_,e.edge=p,e.empty=l,e.flatten=j,e.hexadecimal=M,e.integer=k,e.listToPath=u,e.mapToRecord=h,e.measurement=x,e.node=f,e.octal=O,e.pair=s,e.pluck=y,e.property=m,e.recordToMap=g,e.seq=a,e.string=b,e.tagged=T,e.time=U,e.year=D,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).gram=e.gram||{},e.gram.builder={}))}(this,(function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var n=function(e){return!!e.type&&"path"===e.type},r=function(e){return n(e)&&"ø"===e.id},i=function(e){return n(e)&&e.children&&0===e.children.length&&"ø"!==e.id};function o(e){return Array.isArray(e)?e:e instanceof Function?o(e()):void 0===e?[]:[e]}var a=function(e,n,r,i){return t({type:"seq",id:n},r&&{labels:r},i&&{record:i},{children:o(e)})},u=function(e,t){return void 0===e&&(e="pair"),t.length>1?t.slice(0,t.length-1).reduceRight((function(t,n){return c([n,t],{kind:e})}),t[t.length-1]):t[0]},c=function(e,n){void 0===n&&(n={});var o=t({type:"path"},n.id&&{id:n.id},n.labels&&{labels:n.labels},n.record&&{record:n.record});if(void 0===e)return o.id&&"ø"!==o.id?(o.children=[],o):(o.children=void 0,d);if(0===e.length)return"ø"===o.id?d:(o.children=[],o);if(1===e.length){var a=e[0];return r(a)?(o.children=[],o):(o.children=[a],o)}if(2===e.length){if(n.kind&&"pair"!==n.kind&&i(e[0])&&i(e[1]))return o.kind=n.kind,o.children=[e[0],e[1]],o;if(r(e[0])&&r(e[1]))return o.kind=n.kind,o.children=[],o;o.children=[e[0],e[1]]}return o.kind=n.kind||"pair",o},d={type:"path",id:"ø",labels:void 0,record:void 0,children:[]},l=function(){return d},f=function(e,n,r){return t({type:"path"},e&&{id:e},n&&{labels:n},r&&{record:r},{children:[]})},p=function(e,n,r,i,o){return t({type:"path",id:r},i&&{labels:i},o&&{record:o},{kind:n,children:e})},s=function(e,n,r,i,o){return t({type:"path",kind:e,id:r},i&&{labels:i},o&&{record:o},{children:n})},g=function(e,t,n,r){return s("pair",e,t,n,r)},h=function(e){return e.reduce((function(e,t){return e[t.name]=t.value,e}),{})},y=function(e){return Object.entries(e).reduce((function(e,t){return e.push(v(t[0],t[1])),e}),[])},m=function(e,t){return e.reduce((function(e,n){return n.name===t?n:e}))},v=function(e,t){return{type:"property",name:e,value:t}},b=function(e){return{type:"boolean",value:e?"true":"false"}},T=function(e){return{type:"string",value:e}},k=function(e,t){return{type:"tagged",value:t,tag:e}},S=function(e){return{type:"integer",value:String(e)}},M=function(e){return{type:"decimal",value:String(e)}},O=function(e){return{type:"hexadecimal",value:"number"==typeof e?e.toString(16):e}},x=function(e){return{type:"octal",value:"number"==typeof e?e.toString(8):e}},D=function(e,t){return{type:"measurement",value:String(t),unit:e}},C=function(e){return k("date",e instanceof Date?e.getFullYear().toString():e)},P=function(e){return k("date",e instanceof Date?e.toISOString().slice(0,10):e)},U=function(e){return k("date",e instanceof Date?"--"+e.toISOString().slice(5,10):e)},_=function(e){return k("time",e instanceof Date?e.toTimeString():e)},j=function(e){return k("duration",e instanceof Date?"P"+(e.getUTCFullYear()-1970)+"Y"+e.getUTCMonth()+"M"+e.getUTCDate()+"DT"+e.getUTCHours()+"H"+e.getUTCMinutes()+"M"+e.getUTCMilliseconds()/1e3+"S":e)},q=function(e,t){return void 0===t&&(t=1),e.flat(t).filter((function(e){return null!==e}))},R={__proto__:null,seq:a,listToPath:u,cons:c,empty:l,node:f,edge:p,path:s,pair:g,recordToMap:h,mapToRecord:y,pluck:m,property:v,boolean:b,string:T,tagged:k,integer:S,decimal:M,hexadecimal:O,octal:x,measurement:D,year:C,date:P,dayOfMonth:U,time:_,duration:j,flatten:q,default:{seq:a,empty:l,cons:c,pair:g,listToPath:u,node:f,edge:p,property:v,boolean:b,string:T,tagged:k,integer:S,decimal:M,hexadecimal:O,octal:x,measurement:D,date:P,time:_,duration:j,flatten:q,recordToMap:h,mapToRecord:y}};e.boolean=b,e.builder=R,e.cons=c,e.date=P,e.dayOfMonth=U,e.decimal=M,e.duration=j,e.edge=p,e.empty=l,e.flatten=q,e.hexadecimal=O,e.integer=S,e.listToPath=u,e.mapToRecord=y,e.measurement=D,e.node=f,e.octal=x,e.pair=g,e.path=s,e.pluck=m,e.property=v,e.recordToMap=h,e.seq=a,e.string=T,e.tagged=k,e.time=_,e.year=C,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=gram-builder.umd.production.min.js.map

@@ -8,3 +8,3 @@ {

],
"version": "0.2.11",
"version": "0.2.12",
"license": "MIT",

@@ -30,4 +30,4 @@ "repository": {

"test:watch": "tsdx test --watch",
"lint": "tsdx lint",
"lint:fix": "tsdx lint --fix",
"lint": "tsdx lint src",
"lint:fix": "tsdx lint src --fix",
"build:demo": "shx cp dist/gram-builder.umd.development.* ./public",

@@ -41,3 +41,3 @@ "demo": "serve ./public/",

"hooks": {
"pre-commit": "tsdx lint"
"pre-commit": "tsdx lint src"
}

@@ -72,5 +72,5 @@ },

"dependencies": {
"@gram-data/gram-ast": "^0.2.11"
"@gram-data/gram-ast": "^0.2.12"
},
"gitHead": "23013fdd8af755746f936dd4c01b165b90c477d7",
"gitHead": "7f663c601c2fcd63f180bcd817d107e9cd5f29ee",
"publishConfig": {

@@ -77,0 +77,0 @@ "access": "public"

@@ -255,3 +255,4 @@ /**

*/
export const pair = (
export const path = (
kind: RelationshipKind,
members: [GramPath, GramPath],

@@ -263,3 +264,3 @@ id?: string,

type: 'path',
kind: 'pair',
kind,
id,

@@ -272,2 +273,17 @@ ...(labels && { labels }),

/**
* Build a pair
*
* @param children
* @param id
* @param labels
* @param record
*/
export const pair = (
members: [GramPath, GramPath],
id?: string,
labels?: string[],
record?: GramRecord
): GramPath => path('pair', members, id, labels, record);
/**
* Reduces an array of GramProperties into a map.

@@ -274,0 +290,0 @@ *

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