GPR authentication support

This commit is contained in:
Alex Mullans
2019-09-09 10:27:23 -07:00
committed by Alex Mullans
parent 6c0e2a2a6b
commit 6bd4969ec6
518 changed files with 95599 additions and 2875 deletions

21
node_modules/nimn_schema_builder/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

49
node_modules/nimn_schema_builder/README.md generated vendored Normal file
View File

@ -0,0 +1,49 @@
# nimnjs-schema-builder
Build schema from JS object or JSON to feed into [nimnjs](https://github.com/nimndata/nimnjs-node).
## Usages
First install or add to your npm package
```
$npm install nimn_schema_builder
```
```js
var builder = require("nimn_schema_builder");
var data = {
name : "amit",
age : 32,
human : true,
projects : [
{
name: "some",
from: new Date(),
//to: null,
decription : "some long description"
}
]
}
var schema = builder.build(data);
/*
var schema = {
name : "string",
age : "number",
human : "boolean",
projects : [
{
name: "string",
from: "date",
decription : "string"
}
]
};
*/
```
You can also use it in browser from [dist](dist/nimn-schema-builder.js) folder.
Check the [demo](https://nimndata.github.io/nimnjs-schema-builder/) for instant use.

44
node_modules/nimn_schema_builder/builder.js generated vendored Normal file
View File

@ -0,0 +1,44 @@
/**
* Build Schema for nimnification of JSON data
* @param {*} jsObj
*/
function buildSchema(jsObj){
var type = typeOf(jsObj);
switch(type){
case "array":
return [buildSchema(jsObj[0])];
case "object":
var schema = { };
var keys = Object.keys(jsObj);
for(var i in keys){
var key = keys[i];
/* if(key === null || typeof key === "undefined"){//in case of null or undefined, take sibling's type
if(keys[i+1] ){
schema[key] = buildSchema(jsObj[keys[i+1]]);
}else if(keys[i-1]){
schema[key] = buildSchema(jsObj[keys[i-1]]);
}
continue;
} */
schema[key] = buildSchema(jsObj[key]);
}
return schema;
case "string":
case "number":
case "date":
case "boolean":
return type;
default:
throw Error("Unacceptable type : " + type);
}
}
function typeOf(obj){
if(obj === null) return "null";
else if(Array.isArray(obj)) return "array";
else if(obj instanceof Date) return "date";
else return typeof obj;
}
module.exports.build = buildSchema;

View File

@ -0,0 +1,47 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.nimnSchemaBuilder = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
/**
* Build Schema for nimnification of JSON data
* @param {*} jsObj
*/
function buildSchema(jsObj){
var type = typeOf(jsObj);
switch(type){
case "array":
return [buildSchema(jsObj[0])];
case "object":
var schema = { };
var keys = Object.keys(jsObj);
for(var i in keys){
var key = keys[i];
/* if(key === null || typeof key === "undefined"){//in case of null or undefined, take sibling's type
if(keys[i+1] ){
schema[key] = buildSchema(jsObj[keys[i+1]]);
}else if(keys[i-1]){
schema[key] = buildSchema(jsObj[keys[i-1]]);
}
continue;
} */
schema[key] = buildSchema(jsObj[key]);
}
return schema;
case "string":
case "number":
case "date":
case "boolean":
return type;
default:
throw Error("Unacceptable type : " + type);
}
}
function typeOf(obj){
if(obj === null) return "null";
else if(Array.isArray(obj)) return "array";
else if(obj instanceof Date) return "date";
else return typeof obj;
}
module.exports.build = buildSchema;
},{}]},{},[1])(1)
});

59
node_modules/nimn_schema_builder/package.json generated vendored Normal file
View File

@ -0,0 +1,59 @@
{
"_args": [
[
"nimn_schema_builder@1.1.0",
"C:\\dev\\repos\\actions\\setup-dotnet"
]
],
"_from": "nimn_schema_builder@1.1.0",
"_id": "nimn_schema_builder@1.1.0",
"_inBundle": false,
"_integrity": "sha512-DK5/B8CM4qwzG2URy130avcwPev4uO0ev836FbQyKo1ms6I9z/i6EJyiZ+d9xtgloxUri0W+5gfR8YbPq7SheA==",
"_location": "/nimn_schema_builder",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "nimn_schema_builder@1.1.0",
"name": "nimn_schema_builder",
"escapedName": "nimn_schema_builder",
"rawSpec": "1.1.0",
"saveSpec": null,
"fetchSpec": "1.1.0"
},
"_requiredBy": [
"/nimnjs"
],
"_resolved": "https://registry.npmjs.org/nimn_schema_builder/-/nimn_schema_builder-1.1.0.tgz",
"_spec": "1.1.0",
"_where": "C:\\dev\\repos\\actions\\setup-dotnet",
"author": {
"name": "Amit Gupta",
"url": "https://github.com/amitguptagwl"
},
"bugs": {
"url": "https://github.com/nimndata/nimnjs-schema-builder/issues"
},
"description": "Build schema from JS object or JSON to feed into nimnjs",
"devDependencies": {
"browserify": "^16.1.0"
},
"homepage": "https://github.com/nimndata/nimnjs-schema-builder#readme",
"keywords": [
"nimn",
"nimnjs",
"builder",
"schema"
],
"license": "MIT",
"main": "builder.js",
"name": "nimn_schema_builder",
"repository": {
"type": "git",
"url": "git+https://github.com/nimndata/nimnjs-schema-builder.git"
},
"scripts": {
"bundle": "browserify builder.js -s nimn-schema-builder -o dist/nimn-schema-builder.js"
},
"version": "1.1.0"
}