Skip to content

Commit

Permalink
Merge pull request #4 from cam-inc/license
Browse files Browse the repository at this point in the history
fix: License
  • Loading branch information
shuta13 authored Oct 12, 2022
2 parents 79753ff + ef80248 commit a87cd49
Show file tree
Hide file tree
Showing 14 changed files with 369 additions and 32 deletions.
29 changes: 9 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
"bugs": {
"url": "https://github.com/cam-inc/pde.js/issues"
},
"dependencies": {
"change-case": "^4.1.2"
},
"devDependencies": {
"@babel/core": "^7.18.13",
"@types/jest": "^28.1.7",
"change-case": "^4.1.2",
"cli-color": "^2.0.3",
"esbuild-loader": "^2.19.0",
"jest": "^28.1.3",
Expand Down
39 changes: 39 additions & 0 deletions packages/core/src/component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
/**
* The implementation included in this file is based on Preact.
* Variables, functions, modules, etc. are renamed to names that are easier for us to interpret.
*
* Here is the file referenced and the original license.
*
* --- REFERENCED FILE ---
*
* https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/component.js
*
* --- ---
*
* --- ORIGINAL LICENSE ---
*
* The MIT License (MIT)
*
* Copyright (c) 2015-present Jason Miller
*
* 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.
*
* --- ---
*/

import { PDJSX, VNode, Component as ComponentType } from './types';
import { Fragment } from './create-element';
import { assign } from './helpers';
Expand Down
39 changes: 39 additions & 0 deletions packages/core/src/create-element.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
/**
* The implementation included in this file is based on Preact.
* Variables, functions, modules, etc. are renamed to names that are easier for us to interpret.
*
* Here is the file referenced and the original license.
*
* --- REFERENCED FILE ---
*
* https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/create-element.js
*
* --- ---
*
* --- ORIGINAL LICENSE ---
*
* The MIT License (MIT)
*
* Copyright (c) 2015-present Jason Miller
*
* 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.
*
* --- ---
*/

import { VNodeProps, VNode, Props } from './types';

let vNodeId = 0;
Expand Down
39 changes: 39 additions & 0 deletions packages/core/src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
/**
* The implementation included in this file is based on Preact.
* Variables, functions, modules, etc. are renamed to names that are easier for us to interpret.
*
* Here is the file referenced and the original license.
*
* --- REFERENCED FILE ---
*
* https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/hooks/src/index.js
*
* --- ---
*
* --- ORIGINAL LICENSE ---
*
* The MIT License (MIT)
*
* Copyright (c) 2015-present Jason Miller
*
* 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.
*
* --- ---
*/

import { Component as ComponentType } from './types';
import { options } from './options';

Expand Down
39 changes: 39 additions & 0 deletions packages/core/src/options.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
/**
* The implementation included in this file is based on Preact.
* Variables, functions, modules, etc. are renamed to names that are easier for us to interpret.
*
* Here is the file referenced and the original license.
*
* --- REFERENCED FILE ---
*
* https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/options.js
*
* --- ---
*
* --- ORIGINAL LICENSE ---
*
* The MIT License (MIT)
*
* Copyright (c) 2015-present Jason Miller
*
* 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.
*
* --- ---
*/

import { Component, VNode } from './types';

export type Options = {
Expand Down
Loading

0 comments on commit a87cd49

Please sign in to comment.