New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flat-er

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flat-er - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

dist/index.js

@@ -125,3 +125,5 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (Array.isArray(obj)) {
if (obj === null || obj === undefined) {
agg[pth] = obj;
} else if (Array.isArray(obj)) {
obj.forEach(function (item, i) {

@@ -128,0 +130,0 @@ var newPth = "".concat(pthPrefix).concat(i);

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

{
"name": "flat-er",
"version": "1.0.4",
"description": "Flattens nested js objects to one level",
"main": "dist/index.js",
"scripts": {
"test": "npm run build && npx jest",
"clean": "rm -rf dist node_modules",
"shrink": "npm prune --production && npm shrinkwrap",
"cond-install": "if [ ! -d node_modules ]; then npm i; fi;",
"build": "npm run cond-install && npx webpack --mode production && sudo cp src/index.d.ts dist/index.d.ts",
"preversion": "npm run clean && npm test",
"postversion": "git add . && git commit --amend && git push"
},
"repository": {
"type": "git",
"url": "git+https://github.com/molesoft/flat-er.git"
},
"keywords": [
"flatten",
"object"
],
"author": "Adam Monica",
"license": "MIT",
"bugs": {
"url": "https://github.com/molesoft/flat-er/issues"
},
"files": [
"/dist"
],
"homepage": "https://github.com/molesoft/flat-er#readme",
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.9.6",
"babel-jest": "^26.0.1",
"babel-loader": "^8.1.0",
"jest": "^26.0.1",
"raw-loader": "^4.0.1",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-node-externals": "^1.7.2"
}
}
{"name":"flat-er","version":"1.0.5","description":"Flattens nested js objects to one level","main":"dist/index.js","scripts":{"test":"npm run build && npx jest","clean":"rm -rf dist node_modules","shrink":"npm prune --production && npm shrinkwrap","cond-install":"if [ ! -d node_modules ]; then npm i; fi;","build":"npm run cond-install && npx webpack --mode production && sudo cp src/index.d.ts dist/index.d.ts","preversion":"npm run clean && npm test","postversion":"git add . && git commit --amend && git push","rm-dev-deps":"cp package.json package.json.bak && cat package.json.bak | jq -rc '.devDependencies = {}' > package.json","pub":"npm run rm-dev-deps && npm publish && cp package.json.bak package.json"},"repository":{"type":"git","url":"git+https://github.com/molesoft/flat-er.git"},"keywords":["flatten","object"],"author":"Adam Monica","license":"MIT","bugs":{"url":"https://github.com/molesoft/flat-er/issues"},"files":["/dist"],"homepage":"https://github.com/molesoft/flat-er#readme","devDependencies":{}}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc