New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

object-bystring

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-bystring - npm Package Compare versions

Comparing version
6.0.0
to
6.0.1
+1
-10
dist/index.d.ts

@@ -1,11 +0,2 @@

/**
*
* Thank you, Ray for the original Stackoverflow answer, which is the majority of the source code.
* https://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key
* Check out his github and so profile below:
* https://github.com/raybellis
* https://stackoverflow.com/users/6782/alnitak
*
*/
export default function byString(object: object, string: string, value?: any): any;
export default function byString(obj: any, key: string, value?: any): any;
//# sourceMappingURL=index.d.ts.map
+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,OA2B3E"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,CAiCxE"}

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).byString=t()}(this,(function(){"use strict";return function(e,t,n){for(var o=e,r=(t=(t=t.toString().replace(/\[(\w+)\]/g,".$1")).toString().replace(/^\./,"")).split("."),i=0;i<r.length;++i){var f=r[i];o[f]?o.hasOwnProperty(f)&&(void 0!==n&&i===r.length-1&&(o[f]=n),o=o[f]):o[f]=n}return o}}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).byString=t()}(this,(function(){"use strict";return function(e,t,n){for(var r=t.split(/\.|\[(\d+)\]/).filter(Boolean),f=e,i=0;i<r.length-1;i++){var o=r[i];if(/^\d+$/.test(r[i+1]))Array.isArray(f[o])||(f[o]=[]);else if(!f[o]){var d=/^\d+$/.test(r[i+1]);f[o]=d?[]:{}}f=f[o]}if(void 0===n){for(var s=e,u=0,l=r;u<l.length;u++){o=l[u];if(!s||"object"!=typeof s)return;s=s[o]}return s}f[r[r.length-1]]=n}}));
{
"name": "object-bystring",
"version": "6.0.0",
"version": "6.0.1",
"description": "Access and alter objects using string literals",

@@ -5,0 +5,0 @@ "main": "dist/index.js",