ac-bundle-module-utils-date

utils/date.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: fill, beginning, yesterday, format, valid

fill

function(number, length) {
  while (String(number).length < length) number = "0" + String(number);
  return number;
}

beginning

function(years) {
  if (typeof years !== "number") years = config.api.years;
  var date = new Date();

ac-bundle-module-utils-crypto

utils/crypto.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: md5

md5

function(a) {
  var r = 0, c = "";
  return h(a);
  function h(t) {
    return u(l(m(t)));
  }
  function l(t) {
    return p(g(f(t), 8 * t.length));
  }
  function u(t)

ac-bundle-module-utils-jsontocsv

utils/jsontocsv.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: clean, convert

clean

function(value) {
  if (app.has(value) !== true) value = "";
  if (typeof value === "object") value = value.join(", ");
  if (typeof value === "number") value = String(value);
  return

ac-bundle-module-utils-object

utils/object.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: exists, has, changed, keyProperCase

exists

function(list, key, value, parent) {
  // console.log(list, key, value, parent);
  if (!app.has(parent)) parent = "";
  for (var listKey in list) {
    var item = list[listKey];

ac-bundle-module-utils-proxy

utils/proxy.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: httpAgent, httpsAgent, fetch

httpAgent

function createHttpProxyAgent(opts) {
    return new agent_1.default(opts);
}

httpsAgent

function createHttpsProxyAgent(opts) {
    return new agent_1.default(opts);
}

fetch

async function(proxyUrl, url, method, data, headers) {
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

ac-bundle-module-api-airtable

api/airtable.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: requestDynamic, requestCallback

requestDynamic

function(configKey, baseId) {
  return async function(name, callback, table, view, fields, method, data, offset, page) {
    return await mod.request(name, callback, table, view, fields, method, data, offset, page, configKey,

ac-apps-minimal-api-airtable

api/airtable.js

Makes it easy to work with the Airtable API and perform tasks such as fetching and updating records. Fetches all records if page number not provided.

Example:
app.api.woo.getProducts(options);
app.api.woo.updateProduct(options, product);

A module for ac-bundle-app, published by ac-bundle-module.

Install from:…