hookney 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2016-present, Belexos
1
+ Copyright 2016-present, tbillenstein
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -27,8 +27,8 @@ const Hookney = require('hookney');
27
27
  `Hookney` has a single dependency to [lodash](https://lodash.com/), which must be loaded before using `Hookney`.
28
28
 
29
29
  You can download the latest release from the repository
30
- * [`hookney.js`](https://github.com/belexos/hookney/blob/master/hookney.js) unminified, including comments
31
- * [`hookney.min.js`](https://github.com/belexos/hookney/blob/master/hookney.min.js) minified version
30
+ * [`hookney.js`](https://github.com/tbillenstein/hookney/blob/master/hookney.js) unminified, including comments
31
+ * [`hookney.min.js`](https://github.com/tbillenstein/hookney/blob/master/hookney.min.js) minified version
32
32
 
33
33
  Load [lodash](https://lodash.com/) from a CDN or any other source.
34
34
  ```html
@@ -257,7 +257,7 @@ for details.
257
257
 
258
258
  More examples
259
259
  -------------
260
- Please refer to the [test spec](https://github.com/belexos/hookney/blob/master/spec/HookneySpec.js) for more examples.
260
+ Please refer to the [test spec](https://github.com/tbillenstein/hookney/blob/master/spec/HookneySpec.js) for more examples.
261
261
 
262
262
 
263
263
  Testing
@@ -287,7 +287,7 @@ Build
287
287
 
288
288
  Contribution
289
289
  ------------
290
- Please use [Github issues](https://github.com/belexos/hookney/issues) for requests.
290
+ Please use [Github issues](https://github.com/tbillenstein/hookney/issues) for requests.
291
291
 
292
292
  Pull requests are welcome.
293
293
 
@@ -306,8 +306,8 @@ in the issue which will reproduce the bug.
306
306
 
307
307
  Support
308
308
  -------
309
- * Send us an email: [support@belexos.com](mailto:support@belexos.com)
310
- * Follow us on Twitter: [@belexos](http://twitter.com/belexos)
309
+ * Send us an email: [tb@thomasbillenstein.com](mailto:tb@thomasbillenstein.com)
310
+ * Follow us on Twitter: [@tbillenstein](https://x.com/tbillenstein/)
311
311
 
312
312
 
313
313
  Changelog
@@ -342,5 +342,5 @@ v1.0.0
342
342
 
343
343
  License
344
344
  -------
345
- Copyright (c) 2016-present, Belexos. `Hookney` is licensed under the
346
- [MIT License](https://github.com/belexos/hookney/blob/master/LICENSE).
345
+ Copyright (c) 2016-present, tbillenstein. `Hookney` is licensed under the
346
+ [MIT License](https://github.com/tbillenstein/hookney/blob/master/LICENSE).
package/hookney.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Hookney - Helper around self referencing JSON objects for Node.js and the browser.
3
3
  *
4
- * @copyright: Copyright (c) 2016-present, Belexos
4
+ * @copyright: Copyright (c) 2016-present, tbillenstein
5
5
  *
6
- * @author: Br00ze <br00ze@belexos.com> (http://belexos.com)
6
+ * @author: tbillenstein <tb@thomasbillenstein.com> (https://thomasbillenstein.com)
7
7
  *
8
8
  * @license This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
package/hookney.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! hookney V1.2.0, Copyright (c) 2016-present, Belexos. MIT licensed. */
2
- !function(e){const n="object"==typeof module&&module&&"object"==typeof module.exports,t=n?require("fs"):null,r=n?require("lodash"):e._,i="\\$\\{self\\:(.*?)\\}";function o(){"use strict";const e=arguments.length,o={};var s;for(s=0;s<e;s++)r.merge(o,arguments[s]);function l(e){var n,t,r,o;if(c(e))for(n in e)e.hasOwnProperty(n)&&(c(t=e[n])||f(t)?l(t):u(t)&&(e[n]=g(i,t)));else if(f(e))for(o=e.length,r=0;r<o;r++)c(t=e[r])||f(t)?l(t):u(t)&&(e[r]=g(i,t))}function g(e,n){const t=new RegExp(e,"gm").exec(n);var i;return t&&(i=r.get(o,t[1]),n=n===t[0]?i:n.replace(t[0],u(i)?i:JSON.stringify(i)),u(n)?n=g(e,n):"object"==typeof n&&l(n)),n}this.json=function(){return o},this.stringify=function(e,n){return JSON.stringify(o,e,n)},this.resolveReferences=function(){return l(o),this},n&&(this.writeFile=function(e,n,r){const i=this;r||(r=n,n={}),(n=n||{}).encoding||(n.encoding="utf8"),t.writeFile(e,this.stringify(n.replacer,n.space),n,(function(e){e?r(e,null):r(null,i)}))},this.writeFileSync=function(e,n){return(n=n||{}).encoding||(n.encoding="utf8"),t.writeFileSync(e,this.stringify(n.replacer,n.space),n),this})}function s(e){var n,t,r,i,o=/"|(\/\*)|(\*\/)|(\/\/)|\n|\r/g,s=!1,c=!1,f=!1,u=[],l=0,g=0;for(o.lastIndex=0;null!==(n=o.exec(e));)r=RegExp.leftContext,i=RegExp.rightContext,c||f||(t=r.substring(g),s||(t=t.replace(/(\n|\r|\s)*/g,"")),u[l++]=t),g=o.lastIndex,'"'!==n[0]||c||f?"/*"!==n[0]||s||c||f?"*/"!==n[0]||s||!c||f?"//"!==n[0]||s||c||f?"\n"!==n[0]&&"\r"!==n[0]||s||c||!f?c||f||/\n|\r|\s/.test(n[0])||(u[l++]=n[0]):f=!1:f=!0:c=!1:c=!0:(t=r.match(/(\\)*$/),s&&t&&t[0].length%2!=0||(s=!s),g--,i=e.substring(g));return u[l++]=i,u.join("")}function c(e){return"object"==typeof e&&!Array.isArray(e)}function f(e){return Array.isArray(e)}function u(e){return"string"==typeof e}n?module.exports=o:e.Hookney=o,o.from=function(){const e=arguments.length,n={};var t;for(t=0;t<e;t++)r.merge(n,arguments[t]);return new o(n)},o.fromString=function(e,n){var t={};return e&&u(e)&&e.length&&(e=s(e),t=JSON.parse(e,n)),new o(t)},n&&(o.fromFile=function(e,n,r){r||(r=n,n={}),(n=n||{}).encoding||(n.encoding="utf8"),t.readFile(e,n,(function(t,i){if(t)r(t,null);else{i=s(i);try{r(null,o.fromString(i,n.reviver))}catch(t){t.message=e+": "+t.message,r(t,null)}}}))},o.fromFileSync=function(e,n){var r;(n=n||{}).encoding||(n.encoding="utf8"),r=s(r=t.readFileSync(e,n));try{return o.fromString(r,n.reviver)}catch(n){throw n.message=e+": "+n.message,n}})}(this);
1
+ /*! hookney V1.2.1, Copyright (c) 2016-present, tbillenstein. MIT licensed. */
2
+ !function(e){const n="object"==typeof module&&module&&"object"==typeof module.exports,t=n?require("fs"):null,r=n?require("lodash"):e._,i="\\$\\{self\\:(.*?)\\}";function o(){"use strict";const e=arguments.length,o={};var s;for(s=0;s<e;s++)r.merge(o,arguments[s]);function l(e){var n,t,r,o;if(c(e))for(n in e)e.hasOwnProperty(n)&&(c(t=e[n])||f(t)?l(t):u(t)&&(e[n]=g(i,t)));else if(f(e))for(o=e.length,r=0;r<o;r++)c(t=e[r])||f(t)?l(t):u(t)&&(e[r]=g(i,t))}function g(e,n){const t=new RegExp(e,"gm").exec(n);var i;return t&&(i=r.get(o,t[1]),n=n===t[0]?i:n.replace(t[0],u(i)?i:JSON.stringify(i)),u(n)?n=g(e,n):"object"==typeof n&&l(n)),n}this.json=function(){return o},this.stringify=function(e,n){return JSON.stringify(o,e,n)},this.resolveReferences=function(){return l(o),this},n&&(this.writeFile=function(e,n,r){const i=this;r||(r=n,n={}),(n=n||{}).encoding||(n.encoding="utf8"),t.writeFile(e,this.stringify(n.replacer,n.space),n,function(e){e?r(e,null):r(null,i)})},this.writeFileSync=function(e,n){return(n=n||{}).encoding||(n.encoding="utf8"),t.writeFileSync(e,this.stringify(n.replacer,n.space),n),this})}function s(e){var n,t,r,i,o=/"|(\/\*)|(\*\/)|(\/\/)|\n|\r/g,s=!1,c=!1,f=!1,u=[],l=0,g=0;for(o.lastIndex=0;null!==(n=o.exec(e));)r=RegExp.leftContext,i=RegExp.rightContext,c||f||(t=r.substring(g),s||(t=t.replace(/(\n|\r|\s)*/g,"")),u[l++]=t),g=o.lastIndex,'"'!==n[0]||c||f?"/*"!==n[0]||s||c||f?"*/"!==n[0]||s||!c||f?"//"!==n[0]||s||c||f?"\n"!==n[0]&&"\r"!==n[0]||s||c||!f?c||f||/\n|\r|\s/.test(n[0])||(u[l++]=n[0]):f=!1:f=!0:c=!1:c=!0:(t=r.match(/(\\)*$/),s&&t&&t[0].length%2!=0||(s=!s),g--,i=e.substring(g));return u[l++]=i,u.join("")}function c(e){return"object"==typeof e&&!Array.isArray(e)}function f(e){return Array.isArray(e)}function u(e){return"string"==typeof e}n?module.exports=o:e.Hookney=o,o.from=function(){const e=arguments.length,n={};var t;for(t=0;t<e;t++)r.merge(n,arguments[t]);return new o(n)},o.fromString=function(e,n){var t={};return e&&u(e)&&e.length&&(e=s(e),t=JSON.parse(e,n)),new o(t)},n&&(o.fromFile=function(e,n,r){r||(r=n,n={}),(n=n||{}).encoding||(n.encoding="utf8"),t.readFile(e,n,function(t,i){if(t)r(t,null);else{i=s(i);try{r(null,o.fromString(i,n.reviver))}catch(t){t.message=e+": "+t.message,r(t,null)}}})},o.fromFileSync=function(e,n){var r;(n=n||{}).encoding||(n.encoding="utf8"),r=s(r=t.readFileSync(e,n));try{return o.fromString(r,n.reviver)}catch(n){throw n.message=e+": "+n.message,n}})}(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hookney",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Hookney is a helper around self referencing JSON objects for Node.js and the browser.",
5
5
  "main": "hookney.js",
6
6
  "directories": {
@@ -16,8 +16,12 @@
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "https://github.com/belexos/hookney.git"
19
+ "url": "https://github.com/tbillenstein/hookney.git"
20
20
  },
21
+ "bugs": {
22
+ "url": "https://github.com/tbillenstein/hookney/issues"
23
+ },
24
+ "homepage": "https://github.com/tbillenstein/hookney#readme",
21
25
  "keywords": [
22
26
  "json",
23
27
  "self",
@@ -35,9 +39,8 @@
35
39
  "from file",
36
40
  "from string"
37
41
  ],
38
- "author": "Br00ze <br00ze@belexos.com> (http://belexos.com)",
42
+ "author": "tbillenstein <tb@thomasbillenstein.com> (https://thomasbillenstein.com)",
39
43
  "license": "MIT",
40
- "homepage": "https://github.com/belexos/hookney#readme",
41
44
  "nyc": {
42
45
  "exclude": [
43
46
  "**/*Spec.js"
@@ -51,16 +54,16 @@
51
54
  "lodash": "^4.17.20"
52
55
  },
53
56
  "devDependencies": {
54
- "grunt": "^1.3.0",
55
- "grunt-contrib-jshint": "^2.1.0",
57
+ "grunt": "^1.6.1",
58
+ "grunt-contrib-jshint": "^3.2.0",
56
59
  "grunt-contrib-watch": "^1.1.0",
57
- "grunt-terser": "^1.0.0",
58
- "jasmine": "^3.6.1",
59
- "karma": "^5.1.1",
60
- "karma-chrome-launcher": "^3.1.0",
61
- "karma-coverage": "^2.0.3",
62
- "karma-firefox-launcher": "^1.3.0",
63
- "karma-jasmine": "^4.0.1",
64
- "nyc": "^15.1.0"
60
+ "grunt-terser": "^2.0.0",
61
+ "jasmine": "^5.13.0",
62
+ "karma": "^6.4.4",
63
+ "karma-chrome-launcher": "^3.2.0",
64
+ "karma-coverage": "^2.2.1",
65
+ "karma-firefox-launcher": "^2.1.3",
66
+ "karma-jasmine": "^5.1.0",
67
+ "nyc": "^17.1.0"
65
68
  }
66
69
  }