Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
tfk-dsf-unwrap-parents
Advanced tools
Unwrap parents from dsf results
From npm
$ npm install tfk-dsf-unwrap-parents
From GitHub
$ git clone git@github.com:telemark/tfk-dsf-unwrap-parents.git
cd into directory and install dependencies
$ npm i
const unwrapParents = require('tfk-dsf-unwrap-parents')
const data = {
'RESULT': {
'HOV': {
'FODT': '261186',
'PERS': '12345',
'INR': '26118612345',
'FODTAR': '1986',
'STAT-KD': '1',
'STAT': 'BOSATT',
'NAVN-S': 'GRÅ',
'NAVN-F': 'GEORG',
'NAVN-M': 'GAFFEL',
'NAVN': 'GRÅ GEORG GAFFEL',
'NAVN-D': '19861212',
'ADR': 'SNIPPETSTADSTREDET 24',
'POSTN': '1732',
'POSTS': 'HØTTEN',
'ADRTYPE': 'O',
'SPES-KD': '0',
'SPES': 'VANLIG BOSATT'
},
'FOR': [
{
'FODT': '090457',
'PERS': '54321',
'INR': '09045754321',
'FODTAR': '1957',
'STAT-KD': '1',
'STAT': 'BOSATT',
'NAVN-S': 'GRÅ',
'NAVN-F': 'GUNHILD',
'NAVN-M': {},
'NAVN': 'GRÅ GUNHILD',
'NAVN-D': '19831020',
'ADRR': '19850812',
'ADRF': '19850801',
'ADR': 'SNIPPETSTADSTREDET 24',
'POSTN': '1732',
'POSTS': 'HØTTEN',
'ADRTYPE': 'O',
'SPES-KD': '0',
'SPES': 'VANLIG BOSATT',
'Barn': [
{
'BAR-FODT': '261186',
'BAR-PERS': '12345',
'BAR-INR': '26118612345',
'BAR-KJO': 'M'
}
]
},
{
'FODT': '230457',
'PERS': '67890',
'INR': '23045767890',
'FODTAR': '1957',
'STAT-KD': '1',
'STAT': 'BOSATT',
'NAVN-S': 'GRÅ',
'NAVN-F': 'GANDALF',
'NAVN-M': {},
'NAVN': 'GRÅ GANDALF',
'NAVN-D': {},
'ADR': 'SNIPPETSTADSTREDET 24',
'POSTN': '1732',
'POSTS': 'HØTTEN',
'ADRTYPE': 'O',
'SPES-KD': '0',
'SPES': 'VANLIG BOSATT',
'Barn': [
{
'BAR-FODT': '261186',
'BAR-PERS': '12345',
'BAR-INR': '26118612345',
'BAR-KJO': 'M'
}
]
}
]
}
}
console.log(JSON.stringify(unwrapParents(data), null, 2))
returns
[
{
"FODT": "090457",
"PERS": "54321",
"INR": "09045754321",
"FODTAR": "1957",
"NAVN-S": "GRÅ",
"NAVN-F": "GUNHILD",
"NAVN-M": {},
"NAVN": "GRÅ GUNHILD",
"ADR": "SNIPPETSTADSTREDET 24",
"POSTN": "1732",
"POSTS": "HØTTEN",
"SPES-KD": "0",
"SPES": "VANLIG BOSATT"
},
{
"FODT": "230457",
"PERS": "67890",
"INR": "23045767890",
"FODTAR": "1957",
"NAVN-S": "GRÅ",
"NAVN-F": "GANDALF",
"NAVN-M": {},
"NAVN": "GRÅ GANDALF",
"ADR": "SNIPPETSTADSTREDET 24",
"POSTN": "1732",
"POSTS": "HØTTEN",
"SPES-KD": "0",
"SPES": "VANLIG BOSATT"
}
]
FAQs
Unwraps parents information from dsf result
We found that tfk-dsf-unwrap-parents demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.