@walkeros/server-destination-gcp 0.0.7 → 0.0.8

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/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e,t,r,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{DestinationBigQuery:()=>y,destinationBigQuery:()=>f}),module.exports=(e=a,((e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of i(t))s.call(e,c)||c===r||n(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e})(n({},"__esModule",{value:!0}),e));var c=Object.getOwnPropertyNames,l=(t={"package.json"(e,t){t.exports={name:"@walkeros/core",description:"Core types and platform-agnostic utilities for walkerOS",version:"0.0.7",main:"./dist/index.js",module:"./dist/index.mjs",types:"./dist/index.d.ts",license:"MIT",files:["dist/**"],scripts:{build:"tsup --silent",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",dev:"jest --watchAll --colors",lint:'tsc && eslint "**/*.ts*"',test:"jest",update:"npx npm-check-updates -u && npm update"},dependencies:{},devDependencies:{},repository:{url:"git+https://github.com/elbwalker/walkerOS.git",directory:"packages/core"},author:"elbwalker <hello@elbwalker.com>",homepage:"https://github.com/elbwalker/walkerOS#readme",bugs:{url:"https://github.com/elbwalker/walkerOS/issues"},keywords:["walker","walkerOS","analytics","tracking","data collection","measurement","data privacy","privacy friendly","web analytics","product analytics","core","types","utils"],funding:[{type:"GitHub Sponsors",url:"https://github.com/sponsors/elbwalker"}]}}},function(){return r||(0,t[c(t)[0]])((r={exports:{}}).exports,r),r.exports});function p(e){return Array.isArray(e)}function d(e){return"object"==typeof e&&null!==e&&!p(e)&&"[object Object]"===Object.prototype.toString.call(e)}var{version:u}=l();var g=require("@google-cloud/bigquery");function b(e={}){const t=e.settings||{},{projectId:r,bigquery:n}=t;let{client:o,location:i,datasetId:s,tableId:a}=t;r||function(e){throw new Error(String(e))}("Config settings projectId missing"),i=i||"EU",s=s||"walkeros",a=a||"events";const c=n||{};c.projectId=r,o=o||new g.BigQuery(c);const l={...t,client:o,projectId:r,location:i,datasetId:s,tableId:a};return{...e,settings:l}}var m=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]=d(r)||p(r)?JSON.stringify(r):r,e),{}),y={},f={type:"gcp-bigquery",config:{},init:async({config:e})=>b(e),push:async(e,{config:t,mapping:r,data:n,collector:o,wrap:i})=>await async function(e,{config:t,mapping:r,data:n,collector:o,wrap:i}){const{client:s,datasetId:a,tableId:c}=t.settings;let l;if(d(n))l=n;else{const t=new Date;l={...e,timestamp:e.timestamp?new Date(e.timestamp):t,createdAt:t}}const p=[m(l)];await s.dataset(a).table(c).insert(p)}(e,{config:t,mapping:r,data:n,collector:o,wrap:i})};//# sourceMappingURL=index.js.map
1
+ "use strict";var e,t,r,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{DestinationBigQuery:()=>y,destinationBigQuery:()=>f}),module.exports=(e=a,((e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of i(t))s.call(e,c)||c===r||n(e,c,{get:()=>t[c],enumerable:!(a=o(t,c))||a.enumerable});return e})(n({},"__esModule",{value:!0}),e));var c=Object.getOwnPropertyNames,l=(t={"package.json"(e,t){t.exports={name:"@walkeros/core",description:"Core types and platform-agnostic utilities for walkerOS",version:"0.0.8",main:"./dist/index.js",module:"./dist/index.mjs",types:"./dist/index.d.ts",license:"MIT",files:["dist/**"],scripts:{build:"tsup --silent",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",dev:"jest --watchAll --colors",lint:'tsc && eslint "**/*.ts*"',test:"jest",update:"npx npm-check-updates -u && npm update"},dependencies:{},devDependencies:{},repository:{url:"git+https://github.com/elbwalker/walkerOS.git",directory:"packages/core"},author:"elbwalker <hello@elbwalker.com>",homepage:"https://github.com/elbwalker/walkerOS#readme",bugs:{url:"https://github.com/elbwalker/walkerOS/issues"},keywords:["walker","walkerOS","analytics","tracking","data collection","measurement","data privacy","privacy friendly","web analytics","product analytics","core","types","utils"],funding:[{type:"GitHub Sponsors",url:"https://github.com/sponsors/elbwalker"}]}}},function(){return r||(0,t[c(t)[0]])((r={exports:{}}).exports,r),r.exports});function p(e){return Array.isArray(e)}function d(e){return"object"==typeof e&&null!==e&&!p(e)&&"[object Object]"===Object.prototype.toString.call(e)}var{version:u}=l();var g=require("@google-cloud/bigquery");function b(e={}){const t=e.settings||{},{projectId:r,bigquery:n}=t;let{client:o,location:i,datasetId:s,tableId:a}=t;r||function(e){throw new Error(String(e))}("Config settings projectId missing"),i=i||"EU",s=s||"walkeros",a=a||"events";const c=n||{};c.projectId=r,o=o||new g.BigQuery(c);const l={...t,client:o,projectId:r,location:i,datasetId:s,tableId:a};return{...e,settings:l}}var m=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]=d(r)||p(r)?JSON.stringify(r):r,e),{}),y={},f={type:"gcp-bigquery",config:{},init:async({config:e})=>b(e),push:async(e,{config:t,mapping:r,data:n,collector:o,wrap:i})=>await async function(e,{config:t,mapping:r,data:n,collector:o,wrap:i}){const{client:s,datasetId:a,tableId:c}=t.settings;let l;if(d(n))l=n;else{const t=new Date;l={...e,timestamp:e.timestamp?new Date(e.timestamp):t,createdAt:t}}const p=[m(l)];await s.dataset(a).table(c).insert(p)}(e,{config:t,mapping:r,data:n,collector:o,wrap:i})};//# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var t,e,r=Object.getOwnPropertyNames,s=(t={"package.json"(t,e){e.exports={name:"@walkeros/core",description:"Core types and platform-agnostic utilities for walkerOS",version:"0.0.7",main:"./dist/index.js",module:"./dist/index.mjs",types:"./dist/index.d.ts",license:"MIT",files:["dist/**"],scripts:{build:"tsup --silent",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",dev:"jest --watchAll --colors",lint:'tsc && eslint "**/*.ts*"',test:"jest",update:"npx npm-check-updates -u && npm update"},dependencies:{},devDependencies:{},repository:{url:"git+https://github.com/elbwalker/walkerOS.git",directory:"packages/core"},author:"elbwalker <hello@elbwalker.com>",homepage:"https://github.com/elbwalker/walkerOS#readme",bugs:{url:"https://github.com/elbwalker/walkerOS/issues"},keywords:["walker","walkerOS","analytics","tracking","data collection","measurement","data privacy","privacy friendly","web analytics","product analytics","core","types","utils"],funding:[{type:"GitHub Sponsors",url:"https://github.com/sponsors/elbwalker"}]}}},function(){return e||(0,t[r(t)[0]])((e={exports:{}}).exports,e),e.exports});function i(t){return Array.isArray(t)}function n(t){return"object"==typeof t&&null!==t&&!i(t)&&"[object Object]"===Object.prototype.toString.call(t)}var{version:a}=s();import{BigQuery as o}from"@google-cloud/bigquery";function c(t={}){const e=t.settings||{},{projectId:r,bigquery:s}=e;let{client:i,location:n,datasetId:a,tableId:c}=e;r||function(t){throw new Error(String(t))}("Config settings projectId missing"),n=n||"EU",a=a||"walkeros",c=c||"events";const l=s||{};l.projectId=r,i=i||new o(l);const p={...e,client:i,projectId:r,location:n,datasetId:a,tableId:c};return{...t,settings:p}}var l=t=>Object.entries(t).reduce((t,[e,r])=>(t[e]=n(r)||i(r)?JSON.stringify(r):r,t),{}),p={},d={type:"gcp-bigquery",config:{},init:async({config:t})=>c(t),push:async(t,{config:e,mapping:r,data:s,collector:i,wrap:a})=>await async function(t,{config:e,mapping:r,data:s,collector:i,wrap:a}){const{client:o,datasetId:c,tableId:p}=e.settings;let d;if(n(s))d=s;else{const e=new Date;d={...t,timestamp:t.timestamp?new Date(t.timestamp):e,createdAt:e}}const u=[l(d)];await o.dataset(c).table(p).insert(u)}(t,{config:e,mapping:r,data:s,collector:i,wrap:a})};export{p as DestinationBigQuery,d as destinationBigQuery};//# sourceMappingURL=index.mjs.map
1
+ var t,e,r=Object.getOwnPropertyNames,s=(t={"package.json"(t,e){e.exports={name:"@walkeros/core",description:"Core types and platform-agnostic utilities for walkerOS",version:"0.0.8",main:"./dist/index.js",module:"./dist/index.mjs",types:"./dist/index.d.ts",license:"MIT",files:["dist/**"],scripts:{build:"tsup --silent",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",dev:"jest --watchAll --colors",lint:'tsc && eslint "**/*.ts*"',test:"jest",update:"npx npm-check-updates -u && npm update"},dependencies:{},devDependencies:{},repository:{url:"git+https://github.com/elbwalker/walkerOS.git",directory:"packages/core"},author:"elbwalker <hello@elbwalker.com>",homepage:"https://github.com/elbwalker/walkerOS#readme",bugs:{url:"https://github.com/elbwalker/walkerOS/issues"},keywords:["walker","walkerOS","analytics","tracking","data collection","measurement","data privacy","privacy friendly","web analytics","product analytics","core","types","utils"],funding:[{type:"GitHub Sponsors",url:"https://github.com/sponsors/elbwalker"}]}}},function(){return e||(0,t[r(t)[0]])((e={exports:{}}).exports,e),e.exports});function i(t){return Array.isArray(t)}function n(t){return"object"==typeof t&&null!==t&&!i(t)&&"[object Object]"===Object.prototype.toString.call(t)}var{version:a}=s();import{BigQuery as o}from"@google-cloud/bigquery";function c(t={}){const e=t.settings||{},{projectId:r,bigquery:s}=e;let{client:i,location:n,datasetId:a,tableId:c}=e;r||function(t){throw new Error(String(t))}("Config settings projectId missing"),n=n||"EU",a=a||"walkeros",c=c||"events";const l=s||{};l.projectId=r,i=i||new o(l);const p={...e,client:i,projectId:r,location:n,datasetId:a,tableId:c};return{...t,settings:p}}var l=t=>Object.entries(t).reduce((t,[e,r])=>(t[e]=n(r)||i(r)?JSON.stringify(r):r,t),{}),p={},d={type:"gcp-bigquery",config:{},init:async({config:t})=>c(t),push:async(t,{config:e,mapping:r,data:s,collector:i,wrap:a})=>await async function(t,{config:e,mapping:r,data:s,collector:i,wrap:a}){const{client:o,datasetId:c,tableId:p}=e.settings;let d;if(n(s))d=s;else{const e=new Date;d={...t,timestamp:t.timestamp?new Date(t.timestamp):e,createdAt:e}}const u=[l(d)];await o.dataset(c).table(p).insert(u)}(t,{config:e,mapping:r,data:s,collector:i,wrap:a})};export{p as DestinationBigQuery,d as destinationBigQuery};//# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-destination-gcp",
3
3
  "description": "Google Cloud Platform server destination for walkerOS (BigQuery)",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@google-cloud/bigquery": "^7.8.0",
22
- "@walkeros/server-core": "0.0.7"
22
+ "@walkeros/server-core": "0.0.8"
23
23
  },
24
24
  "devDependencies": {},
25
25
  "repository": {