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

clientconfig

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clientconfig - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

clientconfig.bundle.js
(function(e){if("function"==typeof bootstrap)bootstrap("clientconfig",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeClientconfig=e}else"undefined"!=typeof window?window.clientconfig=e():global.clientconfig=e()})(function(){var define,ses,bootstrap,module,exports;
return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
var cookies = require('cookie-getter'),
config = cookies('config');
config = cookies('config') || {};

@@ -6,0 +6,0 @@ // freeze it if browser supported

var cookies = require('cookie-getter'),
config = cookies('config');
config = cookies('config') || {};

@@ -4,0 +4,0 @@ // freeze it if browser supported

@@ -5,4 +5,7 @@ {

"description": "Simple way to pass config items from server to client",
"version": "0.0.3",
"tags": ["browser", "config"],
"version": "0.0.4",
"tags": [
"browser",
"config"
],
"repository": {

@@ -9,0 +12,0 @@ "type": "git",

@@ -7,7 +7,7 @@ # clientconfig

This is a very simple client side module [browserify](https://github.com/substack/node-browserify). For more info on the approaches used here check out [humanjavascript.com](http://humanjavascript.com).
This is a very simple client side module for [browserify](https://github.com/substack/node-browserify). For more info on the approaches used here check out [humanjavascript.com](http://humanjavascript.com).
If you want to use it as a standalone, or with AMD etc. You can use `clientconfig.bundle.js`. It has no dependencies.
Since we're using cookies, here are some pertinant warnings as so aptly put by @lauriro [here](https://github.com/litejs/browser-cookie-lite#notes):
Since we're using cookies, here are some pertinent warnings as so aptly put by @lauriro [here](https://github.com/litejs/browser-cookie-lite#notes):

@@ -14,0 +14,0 @@ >Unless sent over a secure channel (such as HTTPS), the information in cookies is transmitted in the clear text.

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