diff --git a/packages/color/src/index.js b/packages/color/src/index.js index 0581c2477..c4b1796bb 100644 --- a/packages/color/src/index.js +++ b/packages/color/src/index.js @@ -1,4 +1,19 @@ /* eslint-disable no-param-reassign */ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // antd v4.5.6 // https://github.com/ant-design/ant-design/blob/master/components/style/color/tinyColor.less // 2020-09-23, MIT License diff --git a/packages/delete/src/delete.js b/packages/delete/src/delete.js index b2966e6d9..4b241b427 100644 --- a/packages/delete/src/delete.js +++ b/packages/delete/src/delete.js @@ -1,9 +1,24 @@ /* eslint-disable no-param-reassign */ + +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + // https://github.com/jonschlinkert/unset-value/blob/master/index.js // https://github.com/jonschlinkert/unset-value/issues/3 - // The MIT License (MIT) - // Copyright (c) 2015, 2017, Jon Schlinkert // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/packages/engine/src/AutoBlock.js b/packages/engine/src/AutoBlock.js index 9eb1c3e8e..a259668cf 100644 --- a/packages/engine/src/AutoBlock.js +++ b/packages/engine/src/AutoBlock.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import Block from './Block'; diff --git a/packages/engine/src/Block.js b/packages/engine/src/Block.js index bbdc13a50..1b42407db 100644 --- a/packages/engine/src/Block.js +++ b/packages/engine/src/Block.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import useDynamicScript from './utils/useDynamicScript'; import loadComponent from './utils/loadComponent'; diff --git a/packages/engine/src/Engine.js b/packages/engine/src/Engine.js index b56784f08..69a83d51b 100644 --- a/packages/engine/src/Engine.js +++ b/packages/engine/src/Engine.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import { ApolloProvider } from '@apollo/client'; import useGqlClient from './utils/useGqlClient'; diff --git a/packages/engine/src/Page.js b/packages/engine/src/Page.js index e6b39aecb..7c109fd52 100644 --- a/packages/engine/src/Page.js +++ b/packages/engine/src/Page.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import { gql } from '@apollo/client'; import { useQuery } from '@apollo/client'; diff --git a/packages/engine/src/bootstrap.js b/packages/engine/src/bootstrap.js index cf9f073a5..13b80fee7 100644 --- a/packages/engine/src/bootstrap.js +++ b/packages/engine/src/bootstrap.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import ReactDOM from 'react-dom'; import Engine from './Engine'; diff --git a/packages/engine/src/index.js b/packages/engine/src/index.js index 3e86b95ae..f525f50c3 100644 --- a/packages/engine/src/index.js +++ b/packages/engine/src/index.js @@ -1,2 +1,18 @@ -import bootstrap from "./bootstrap"; +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import bootstrap from './bootstrap'; bootstrap(); diff --git a/packages/engine/src/utils/loadComponent.js b/packages/engine/src/utils/loadComponent.js index 8392597e0..b581e90f7 100644 --- a/packages/engine/src/utils/loadComponent.js +++ b/packages/engine/src/utils/loadComponent.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + function loadComponent(scope, module) { return async () => { // Initializes the share scope. This fills it with known provided modules from this build and all remotes diff --git a/packages/engine/src/utils/useDynamicScript.js b/packages/engine/src/utils/useDynamicScript.js index c09a1b4d0..8cb0f9ad6 100644 --- a/packages/engine/src/utils/useDynamicScript.js +++ b/packages/engine/src/utils/useDynamicScript.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; const useDynamicScript = (args) => { diff --git a/packages/engine/src/utils/useGqlClient.js b/packages/engine/src/utils/useGqlClient.js index 37a76c815..db5a6278e 100644 --- a/packages/engine/src/utils/useGqlClient.js +++ b/packages/engine/src/utils/useGqlClient.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import { useState } from 'react'; import { ApolloLink, HttpLink } from '@apollo/client'; import { ApolloClient } from '@apollo/client/core'; diff --git a/packages/express/server.js b/packages/express/server.js index f26a0af2b..66f793936 100644 --- a/packages/express/server.js +++ b/packages/express/server.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + const express = require('express'); const { ApolloServer } = require('apollo-server-express'); const { typeDefs, resolvers, createContext } = require('@lowdefy/poc-graphql'); diff --git a/packages/express/shell/src/Shell.js b/packages/express/shell/src/Shell.js index d4a6083f3..ff51cd9c4 100644 --- a/packages/express/shell/src/Shell.js +++ b/packages/express/shell/src/Shell.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import loadComponent from './utils/loadComponent'; import useDynamicScript from './utils/useDynamicScript'; diff --git a/packages/express/shell/src/bootstrap.js b/packages/express/shell/src/bootstrap.js index 79fa3c0e8..b81c0fa01 100644 --- a/packages/express/shell/src/bootstrap.js +++ b/packages/express/shell/src/bootstrap.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; import ReactDOM from 'react-dom'; import Shell from './Shell'; diff --git a/packages/express/shell/src/index.js b/packages/express/shell/src/index.js index 3e86b95ae..f525f50c3 100644 --- a/packages/express/shell/src/index.js +++ b/packages/express/shell/src/index.js @@ -1,2 +1,18 @@ -import bootstrap from "./bootstrap"; +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import bootstrap from './bootstrap'; bootstrap(); diff --git a/packages/express/shell/src/utils/loadComponent.js b/packages/express/shell/src/utils/loadComponent.js index 8392597e0..b581e90f7 100644 --- a/packages/express/shell/src/utils/loadComponent.js +++ b/packages/express/shell/src/utils/loadComponent.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + function loadComponent(scope, module) { return async () => { // Initializes the share scope. This fills it with known provided modules from this build and all remotes diff --git a/packages/express/shell/src/utils/useDynamicScript.js b/packages/express/shell/src/utils/useDynamicScript.js index c09a1b4d0..8cb0f9ad6 100644 --- a/packages/express/shell/src/utils/useDynamicScript.js +++ b/packages/express/shell/src/utils/useDynamicScript.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import React from 'react'; const useDynamicScript = (args) => { diff --git a/packages/get/src/get.js b/packages/get/src/get.js index 3462195dd..220b8eb78 100644 --- a/packages/get/src/get.js +++ b/packages/get/src/get.js @@ -1,4 +1,21 @@ /* eslint-disable no-param-reassign */ + +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + // Source: // https://github.com/jonschlinkert/get-value/blob/master/index.js // https://www.npmjs.com/package/get-value diff --git a/packages/graphql/src/index.js b/packages/graphql/src/index.js index 423534dde..6678bec96 100644 --- a/packages/graphql/src/index.js +++ b/packages/graphql/src/index.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import { gql } from 'apollo-server-core'; import GraphQLJSON from 'graphql-type-json'; diff --git a/packages/helpers/src/applyArrayIndices.js b/packages/helpers/src/applyArrayIndices.js index 73e2f4eb6..c0a73227c 100644 --- a/packages/helpers/src/applyArrayIndices.js +++ b/packages/helpers/src/applyArrayIndices.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import type from '@lowdefy/type'; const applyArrayIndices = (arrayIndices, name) => { diff --git a/packages/helpers/src/getFieldValues.js b/packages/helpers/src/getFieldValues.js index dee7d4bb5..853242592 100644 --- a/packages/helpers/src/getFieldValues.js +++ b/packages/helpers/src/getFieldValues.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import serializer from '@lowdefy/serializer'; function getFieldValues(operatorName, ...args) { diff --git a/packages/helpers/src/getUniqueValues.js b/packages/helpers/src/getUniqueValues.js index 793b65bdd..e2d0d5f74 100644 --- a/packages/helpers/src/getUniqueValues.js +++ b/packages/helpers/src/getUniqueValues.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import type from '@lowdefy/type'; const getUniqueValues = (arr, key = 'value') => { diff --git a/packages/helpers/src/getValueIndex.js b/packages/helpers/src/getValueIndex.js index fc9d9d54b..d3527ccc2 100644 --- a/packages/helpers/src/getValueIndex.js +++ b/packages/helpers/src/getValueIndex.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import type from '@lowdefy/type'; // eslint-disable-next-line consistent-return diff --git a/packages/helpers/src/index.js b/packages/helpers/src/index.js index 344dc87ef..5d4cb4726 100644 --- a/packages/helpers/src/index.js +++ b/packages/helpers/src/index.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import applyArrayIndices from './applyArrayIndices'; import getFieldValues from './getFieldValues'; import getUniqueValues from './getUniqueValues'; diff --git a/packages/helpers/src/intersect.js b/packages/helpers/src/intersect.js index 062afde92..935b3b1bd 100644 --- a/packages/helpers/src/intersect.js +++ b/packages/helpers/src/intersect.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + const intersect = (arrOne, arrTwo) => { return arrOne.some((item) => arrTwo.includes(item)); }; diff --git a/packages/helpers/src/keyPermutations.js b/packages/helpers/src/keyPermutations.js index 348c3989b..c899f93b6 100644 --- a/packages/helpers/src/keyPermutations.js +++ b/packages/helpers/src/keyPermutations.js @@ -1,4 +1,21 @@ /* eslint-disable no-plusplus */ + +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + const regex = /(\.\d)/g; const generateBitCount = (numOfMatches) => { diff --git a/packages/helpers/src/mergeObjects.js b/packages/helpers/src/mergeObjects.js index 94e8872ad..9c1a3830d 100644 --- a/packages/helpers/src/mergeObjects.js +++ b/packages/helpers/src/mergeObjects.js @@ -1,10 +1,26 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import type from '@lowdefy/type'; import merge from 'lodash.merge'; -const mergeObjects = objects => { +const mergeObjects = (objects) => { let merged = objects; if (type.isArray(objects)) { - merged = merge(...objects.filter(obj => type.isObject(obj))); + merged = merge(...objects.filter((obj) => type.isObject(obj))); } return merged; }; diff --git a/packages/helpers/src/omit.js b/packages/helpers/src/omit.js index 1390b9564..a7c53fd2e 100644 --- a/packages/helpers/src/omit.js +++ b/packages/helpers/src/omit.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import del from '@lowdefy/delete'; const omit = (obj, list) => { diff --git a/packages/helpers/src/swap.js b/packages/helpers/src/swap.js index 0ad9050a0..ac02754df 100644 --- a/packages/helpers/src/swap.js +++ b/packages/helpers/src/swap.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import type from '@lowdefy/type'; const swap = (arr, from, to) => { diff --git a/packages/helpers/src/urlQuery.js b/packages/helpers/src/urlQuery.js index 72af8faa8..b24705533 100644 --- a/packages/helpers/src/urlQuery.js +++ b/packages/helpers/src/urlQuery.js @@ -1,3 +1,19 @@ +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + import type from '@lowdefy/type'; import queryString from 'query-string'; import serializer from '@lowdefy/serializer'; diff --git a/packages/serializer/src/index.js b/packages/serializer/src/index.js index a9b52e77d..ae3734edf 100644 --- a/packages/serializer/src/index.js +++ b/packages/serializer/src/index.js @@ -1,6 +1,22 @@ /* eslint-disable no-param-reassign */ -import type from '@lowdefy/type'; +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +import type from '@lowdefy/type'; import stableStringify from './stableStringify'; const makeReplacer = (customReplacer, isoStringDates) => (key, value) => { diff --git a/packages/serializer/src/stableStringify.js b/packages/serializer/src/stableStringify.js index 6a4ffc39d..51a2a099c 100644 --- a/packages/serializer/src/stableStringify.js +++ b/packages/serializer/src/stableStringify.js @@ -3,7 +3,21 @@ /* eslint-disable consistent-return */ /* eslint-disable no-param-reassign */ -import type from '@lowdefy/type'; +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // https://github.com/substack/json-stable-stringify // https://github.com/substack/json-stable-stringify/LICENCE @@ -27,6 +41,8 @@ import type from '@lowdefy/type'; // 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. +import type from '@lowdefy/type'; + function stableStringify(obj, opts) { if (!opts) opts = {}; if (typeof opts === 'function') opts = { cmp: opts }; diff --git a/packages/type/src/type.js b/packages/type/src/type.js index a89104b9f..5a41bedec 100644 --- a/packages/type/src/type.js +++ b/packages/type/src/type.js @@ -1,5 +1,22 @@ /* eslint-disable indent */ /* eslint-disable default-case */ + +/* + Copyright 2020 Lowdefy, Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + // because both js typeof and instance of sucks! use this. // https://ultimatecourses.com/blog/understanding-javascript-types-and-reliable-type-checking const { toString } = Object.prototype;