How to use querystring-es3 - 3 common examples

To help you get started, we’ve selected a few querystring-es3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / angular-instantsearch / src / create-ssr-algolia-client.ts View on Github external
import * as algoliasearchProxy from 'algoliasearch/index';
import * as encodeProxy from 'querystring-es3/encode';

import { VERSION } from './version';

// AOT + Rollup workaround
// https://github.com/rollup/rollup/issues/1267#issuecomment-296395734

const algoliasearch = algoliasearchProxy.default || algoliasearchProxy;
const encode = encodeProxy.default || encodeProxy;

export function createSSRAlgoliaClient({
  httpClient,
  HttpHeaders,
  transferState,
  makeStateKey,
}) {
  console.warn(
    '`createSSRAlgoliaClient` is deprecated in favor of `createSSRSearchClient` to be plugged to `searchClient`.'
  );

  return (_, appId, apiKey) =>
    createSSRSearchClient({
      appId,
      apiKey,
      httpClient,
github buttercup / buttercup-mobile / source / library / PiwikTracker.js View on Github external
function sendPayload(fetchFn, trackerURL, payload) {
    const url = `${trackerURL}?${querystring.stringify(payload)}`;
    if (isTest() === true) {
        return Promise.resolve();
    }
    return fetchFn(url).then(response => {
        if (/^(200|30[12478])$/.test(response.status) !== true) {
            throw new Error(`Tracking failed: Bad response code: ${response.status} ${response.statusText}`);
        }
    });
}
github algolia / algoliasearch-client-javascript / src / places.js View on Github external
index.reverse = function(options, callback) {
      var encoded = qs3.encode(options);

      return this.as._jsonRequest({
        method: 'GET',
        url: '/1/places/reverse?' + encoded,
        hostType: 'read',
        callback: callback
      });
    };

querystring-es3

Node's querystring module for all engines. (ES3 compat fork)

MIT
Latest version published 10 years ago

Package Health Score

65 / 100
Full package analysis