Skip to content

Commit 9d68f7c

Browse files
authored
Merge pull request #49 from mitre/update_dependencies
Update dependencies, apply a bugfix patch to the proper location, and update license information
2 parents b3c30a3 + cfbe44e commit 9d68f7c

File tree

8 files changed

+75
-35
lines changed

8 files changed

+75
-35
lines changed

LICENSE

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,57 @@
1-
Licensed under the apache-2.0 license, except as noted below.
1+
NOTE: The Apache-2.0 License applies to all contributions from MITRE and any further contributions from outside parties. The BSD-2-Clause License applies to all contributions from Alexey Valikov and all contributions prior to the creation of this fork.
2+
3+
© 2022 The MITRE Corporation.
4+
5+
Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
218

319
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
420

5-
* Redistributions of source code must retain the above copyright/ digital rights legend, this list of conditions and the following Notice.
21+
- Redistributions of source code must retain the above copyright/ digital rights legend, this list of conditions and the following Notice.
22+
23+
- Redistributions in binary form must reproduce the above copyright copyright/ digital rights legend, this list of conditions and the following Notice in the documentation and/or other materials provided with the distribution.
24+
25+
- Neither the name of The MITRE Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
26+
27+
NOTICE
28+
29+
MITRE grants permission to reproduce, distribute, modify, and otherwise use this software to the extent permitted by the licensed terms provided in the LICENSE file included with this project.
30+
31+
This software was produced by The MITRE Corporation for the U. S. Government under contract. As such the U.S. Government has certain use and data rights in this software. No use other than those granted to the U. S. Government, or to those acting on behalf of the U. S. Government, under these contract arrangements is authorized without the express written permission of The MITRE Corporation.
32+
33+
For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.
34+
35+
Copyright (c) 2014, Alexey Valikov.
36+
All rights reserved.
37+
38+
Redistribution and use in source and binary forms, with or without
39+
modification, are permitted provided that the following conditions are met:
640

7-
* Redistributions in binary form must reproduce the above copyright copyright/ digital rights legend, this list of conditions and the following Notice in the documentation and/or other materials provided with the distribution.
41+
* Redistributions of source code must retain the above copyright notice, this
42+
list of conditions and the following disclaimer.
843

9-
* Neither the name of The MITRE Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
44+
* Redistributions in binary form must reproduce the above copyright notice,
45+
this list of conditions and the following disclaimer in the documentation
46+
and/or other materials provided with the distribution.
1047

48+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
49+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
50+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
51+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
52+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
53+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
54+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
55+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
56+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

NOTICE.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,11 @@ You can also `marshalString`.
110110

111111
## Documentation
112112

113-
* [Jsonix GitHub Project](https://github.com/highsource/jsonix)
114-
* [Jsonix Wiki](https://github.com/highsource/jsonix/wiki)
113+
* [Original Jsonix GitHub Project](https://github.com/highsource/jsonix)
114+
* [Original Jsonix Wiki](https://github.com/highsource/jsonix/wiki)
115+
* [MITRE Jsonix GitHub Project](https://github.com/mitre/jsonix)
116+
* [MITRE Jsonix Wiki](https://github.com/mitre/jsonix/wiki)
115117

116-
## Credits
118+
## Acknowledgements
117119

118-
![Logo WebStorm](images/logo_WebStorm.png)
119-
120-
Jsonix is developed with [WebStorm](https://www.jetbrains.com/webstorm/), the smartest JavaScript IDE.
121-
Many thanks to [JetBrains](https://www.jetbrains.com) for providing a free open-source license for Jsonix development.
120+
This library is a fork of https://github.com/highsource/jsonix originally created by [Dr. Alexey Valikov](https://good-bye.org/alexey-valikov/).

dist/Jsonix-min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ this.scopedElementInfosMap={};
23782378
if(Jsonix.Util.Type.exists(l)){Jsonix.Util.Ensure.ensureObject(l);
23792379
if(Jsonix.Util.Type.isObject(l.namespacePrefixes)){this.namespacePrefixes=Jsonix.Util.Type.cloneObject(l.namespacePrefixes,{})
23802380
}if(Jsonix.Util.Type.isBoolean(l.supportXsiType)){this.supportXsiType=l.supportXsiType
2381-
}}for(var j in this.namespacePrefixes){if(this.namespacePrefixes.hasOwnProperty(j)){p=this.namespacePrefixes[j];
2381+
}}for(var j in this.namespacePrefixes){if(this.namespacePrefixes.hasOwnProperty(j)){var p=this.namespacePrefixes[j];
23822382
this.prefixNamespaces[p]=j
23832383
}}if(Jsonix.Util.Type.exists(i)){Jsonix.Util.Ensure.ensureArray(i);
23842384
var g,h,k;

images/logo_WebStorm.png

-10.3 KB
Binary file not shown.

nodejs/scripts/jsonix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5719,7 +5719,7 @@ var _jsonix_factory = function (_jsonix_xmldom, _jsonix_xmlhttprequest, _jsonix_
57195719
// Initialize prefix/namespace mapping
57205720
for (var ns in this.namespacePrefixes) {
57215721
if (this.namespacePrefixes.hasOwnProperty(ns)) {
5722-
p = this.namespacePrefixes[ns];
5722+
var p = this.namespacePrefixes[ns];
57235723
this.prefixNamespaces[p] = ns;
57245724
}
57255725
}

nodejs/scripts/package-lock.json

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/scripts/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mitre/jsonix",
3-
"version": "3.0.9",
3+
"version": "3.0.10",
44
"description": "Jsonix (JSON interfaces for XML) is a JavaScript library which allows converting between XML and JSON structures.",
55
"keywords": [
66
"json",
@@ -26,8 +26,8 @@
2626
},
2727
"licenses": [
2828
{
29-
"type": "BSD-3-Clause",
30-
"url": "http://github.com/highsource/jsonix/raw/master/LICENSE"
29+
"type": "(Apache-2.0 AND BSD-2-Clause)",
30+
"url": "https://github.com/mitre/jsonix/raw/master/LICENSE"
3131
}
3232
],
3333
"author": {
@@ -38,6 +38,10 @@
3838
{
3939
"name": "Conrad Pankoff",
4040
"url": "https://github.com/deoxxa"
41+
},
42+
{
43+
"name": "MITRE SAF (C)",
44+
"url": "https://saf.mitre.org"
4145
}
4246
],
4347
"main": "jsonix.js",

0 commit comments

Comments
 (0)