diff --git a/package.json b/package.json index 897a542..88635e9 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "author": "contact@num.social.gouv.fr", "license": "MIT", "dependencies": { - "@socialgouv/kali-data": "^2.174.0", + "@socialgouv/kali-data": "^3.0.0", "cors": "^2.8.5", "express": "^4.17.1", "zlib": "^1.0.5" diff --git a/yarn.lock b/yarn.lock index 4391965..dd783a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -157,13 +157,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/helper-string-parser@npm:7.19.4" - checksum: e20c81582e75df2a020a1c547376668a6e1e1c2ca535a6b7abb25b83d5536c99c0d113184bbe87c1a26e923a9bb0c6e5279fca8db6bd609cd3499fafafc01598 - languageName: node - linkType: hard - "@babel/helper-string-parser@npm:^7.23.4": version: 7.23.4 resolution: "@babel/helper-string-parser@npm:7.23.4" @@ -171,14 +164,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.18.6, @babel/helper-validator-identifier@npm:^7.19.1": - version: 7.19.1 - resolution: "@babel/helper-validator-identifier@npm:7.19.1" - checksum: f978ecfea840f65b64ab9e17fac380625a45f4fe1361eeb29867fcfd1c9eaa72abd7023f2f40ac3168587d7e5153660d16cfccb352a557be2efd347a051b4b20 - languageName: node - linkType: hard - -"@babel/helper-validator-identifier@npm:^7.22.20": +"@babel/helper-validator-identifier@npm:^7.18.6, @babel/helper-validator-identifier@npm:^7.19.1, @babel/helper-validator-identifier@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-validator-identifier@npm:7.22.20" checksum: dcad63db345fb110e032de46c3688384b0008a42a4845180ce7cd62b1a9c0507a1bed727c4d1060ed1a03ae57b4d918570259f81724aaac1a5b776056f37504e @@ -395,18 +381,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.2, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3": - version: 7.21.3 - resolution: "@babel/types@npm:7.21.3" - dependencies: - "@babel/helper-string-parser": "npm:^7.19.4" - "@babel/helper-validator-identifier": "npm:^7.19.1" - to-fast-properties: "npm:^2.0.0" - checksum: 2cd4b2126bcb47494d45ba09b5eda797a1b6654d667706ca2840cb169e17f59cfd08c59cb2bfd45eb8bf2a98d3bd53b1be53de14d1651c8b7b1f02ce17c24778 - languageName: node - linkType: hard - -"@babel/types@npm:^7.8.3": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.2, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.2, @babel/types@npm:^7.21.3, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": version: 7.23.6 resolution: "@babel/types@npm:7.23.6" dependencies: @@ -869,14 +844,16 @@ __metadata: languageName: node linkType: hard -"@socialgouv/kali-data@npm:^2.174.0": - version: 2.511.0 - resolution: "@socialgouv/kali-data@npm:2.511.0" +"@socialgouv/kali-data@npm:^3.0.0": + version: 3.27.0 + resolution: "@socialgouv/kali-data@npm:3.27.0" dependencies: - unist-util-find: "npm:1.0.2" + csv-parser: "npm:^3.0.0" + node-xlsx: "npm:^0.23.0" + unist-util-find: "npm:1.0.4" unist-util-flat-filter: "npm:1.0.0" unist-util-parents: "npm:1.0.3" - checksum: e3fc401300058f948bd8c70689f653413342bd215fdb32e9d8986eaf23788c3ef3a96fcf3b22d65a36163e648d2c806082abdd800ab8cd5929560369355f9cad + checksum: 14af221af1fb05e3cea115498f200836077892ba577b467a475eec84be4c5d7b51a1c8713f438bba532d00acb8e50c2e0e4a664b15ea0887e6bd722b443b47ce languageName: node linkType: hard @@ -885,7 +862,7 @@ __metadata: resolution: "@socialgouv/siret2idcc@workspace:." dependencies: "@socialgouv/eslint-config-recommended": "npm:^1.99.1" - "@socialgouv/kali-data": "npm:^2.174.0" + "@socialgouv/kali-data": "npm:^3.0.0" cors: "npm:^2.8.5" eslint: "npm:^8.3.0" express: "npm:^4.17.1" @@ -1020,6 +997,13 @@ __metadata: languageName: node linkType: hard +"@types/unist@npm:^2.0.0": + version: 2.0.10 + resolution: "@types/unist@npm:2.0.10" + checksum: 5f247dc2229944355209ad5c8e83cfe29419fa7f0a6d557421b1985a1500444719cc9efcc42c652b55aab63c931813c88033e0202c1ac684bcd4829d66e44731 + languageName: node + linkType: hard + "@types/yargs-parser@npm:*": version: 21.0.0 resolution: "@types/yargs-parser@npm:21.0.0" @@ -1816,6 +1800,17 @@ __metadata: languageName: node linkType: hard +"csv-parser@npm:^3.0.0": + version: 3.0.0 + resolution: "csv-parser@npm:3.0.0" + dependencies: + minimist: "npm:^1.2.0" + bin: + csv-parser: bin/csv-parser + checksum: 206aef102c10d532a31c7d85e6b1b0e53c7cb8346037eb9f23e0bd7369788960d8f2431639ea9f62e34ddf54d0182dfb345691c11c666802324f25c51dba79bc + languageName: node + linkType: hard + "d@npm:1, d@npm:^1.0.1": version: 1.0.1 resolution: "d@npm:1.0.1" @@ -4251,7 +4246,7 @@ __metadata: languageName: node linkType: hard -"lodash.iteratee@npm:^4.5.0": +"lodash.iteratee@npm:^4.7.0": version: 4.7.0 resolution: "lodash.iteratee@npm:4.7.0" checksum: 19d9345c4ee9de99f7d292cb771aa6de35af8b90e62250cf098201c5bc97cc5a47db275d8ebd09d08e64d91b957082883d2ef64bff7be243174616d51d048aaa @@ -4614,6 +4609,17 @@ __metadata: languageName: node linkType: hard +"node-xlsx@npm:^0.23.0": + version: 0.23.0 + resolution: "node-xlsx@npm:0.23.0" + dependencies: + xlsx: "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz" + bin: + node-xlsx: lib/bin/cli.js + checksum: 78c52cbdd6c164cd34d202dd18eeeccaff9e98872233d73b3f8079683f3af85458df519b032538ba2cadf493920a177311428af95435b4eb0c840d5c25c7ea13 + languageName: node + linkType: hard + "nopt@npm:^7.0.0": version: 7.2.0 resolution: "nopt@npm:7.2.0" @@ -5233,18 +5239,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.2, semver@npm:^7.3.7, semver@npm:^7.3.8": - version: 7.3.8 - resolution: "semver@npm:7.3.8" - dependencies: - lru-cache: "npm:^6.0.0" - bin: - semver: bin/semver.js - checksum: 7e581d679530db31757301c2117721577a2bb36a301a443aac833b8efad372cda58e7f2a464fe4412ae1041cc1f63a6c1fe0ced8c57ce5aca1e0b57bb0d627b9 - languageName: node - linkType: hard - -"semver@npm:^7.3.5": +"semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8": version: 7.5.4 resolution: "semver@npm:7.5.4" dependencies: @@ -5867,13 +5862,13 @@ __metadata: languageName: node linkType: hard -"unist-util-find@npm:1.0.2": - version: 1.0.2 - resolution: "unist-util-find@npm:1.0.2" +"unist-util-find@npm:1.0.4": + version: 1.0.4 + resolution: "unist-util-find@npm:1.0.4" dependencies: - lodash.iteratee: "npm:^4.5.0" - unist-util-visit: "npm:^1.1.0" - checksum: cc24b34344ae0e70b3ee72644299c52b4590b40fd5826a550db6d55fc428de0070a82e043a0dddacb201937e287cdfc4229cea2da28f94ae91ab1700f6f07d0e + lodash.iteratee: "npm:^4.7.0" + unist-util-visit: "npm:^2.0.0" + checksum: 0e3a885cf3c12332cebf54829ca662c528d537419d7f761572bfba86616b1f588f88dc65fe052fd574dc8238e595c7fee3435277b602aaeeab9477a850df03c4 languageName: node linkType: hard @@ -5886,13 +5881,6 @@ __metadata: languageName: node linkType: hard -"unist-util-is@npm:^3.0.0": - version: 3.0.0 - resolution: "unist-util-is@npm:3.0.0" - checksum: e46186214fabcef3c4947ab188ae272965465ec5c40652934025f6382c58dff6edca40860528f72718e42f858d1ce7db2754d5198beb96eff0379e4c3c34218f - languageName: node - linkType: hard - "unist-util-is@npm:^4.0.0": version: 4.1.0 resolution: "unist-util-is@npm:4.1.0" @@ -5909,21 +5897,24 @@ __metadata: languageName: node linkType: hard -"unist-util-visit-parents@npm:^2.0.0": - version: 2.1.2 - resolution: "unist-util-visit-parents@npm:2.1.2" +"unist-util-visit-parents@npm:^3.0.0": + version: 3.1.1 + resolution: "unist-util-visit-parents@npm:3.1.1" dependencies: - unist-util-is: "npm:^3.0.0" - checksum: ca88e2f88f3c4849f1bb4e90edb3f5fa66bf94656165dd74027971c393274d25b1b34974b18da336c4e2b45771495d5dac2f80571fa25f86c8cec859287c25f8 + "@types/unist": "npm:^2.0.0" + unist-util-is: "npm:^4.0.0" + checksum: 231c80c5ba8e79263956fcaa25ed2a11ad7fe77ac5ba0d322e9d51bbc4238501e3bb52f405e518bcdc5471e27b33eff520db0aa4a3b1feb9fb6e2de6ae385d49 languageName: node linkType: hard -"unist-util-visit@npm:^1.1.0": - version: 1.4.1 - resolution: "unist-util-visit@npm:1.4.1" +"unist-util-visit@npm:^2.0.0": + version: 2.0.3 + resolution: "unist-util-visit@npm:2.0.3" dependencies: - unist-util-visit-parents: "npm:^2.0.0" - checksum: 8fb61725270059034d987813816e6c2d6362f55d4d19936db9ce23a5ace0ae4d584064ceb94dee6618e3318aef087505607f7ccc8c4305fbb644c3b643ae0059 + "@types/unist": "npm:^2.0.0" + unist-util-is: "npm:^4.0.0" + unist-util-visit-parents: "npm:^3.0.0" + checksum: 7b11303d82271ca53a2ced2d56c87a689dd518596c99ff4a11cdff750f5cc5c0e4b64b146bd2363557cb29443c98713bfd1e8dc6d1c3f9d474b9eb1f23a60888 languageName: node linkType: hard @@ -6179,6 +6170,15 @@ __metadata: languageName: node linkType: hard +"xlsx@https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz": + version: 0.19.3 + resolution: "xlsx@https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz" + bin: + xlsx: ./bin/xlsx.njs + checksum: 86c0874bb71b14555b566a529dc3f3cf2bf1eb7170a4a058171332739b868e53bfe7f1137a85139ee99c9e5a1d9c85acc60c5c2af19579ad3f2f60ad55f74f7d + languageName: node + linkType: hard + "xml-name-validator@npm:^3.0.0": version: 3.0.0 resolution: "xml-name-validator@npm:3.0.0"